Part Number Hot Search : 
N5266 TMP47C 3X216 TBB505B W4093BN SA18A 7284R10K E4284
Product Description
Full Text Search
 

To Download MC68HC901 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  1995 motorola, inc. all rights reserved. motorola reserv es the r ight to mak e changes without fur ther notice to an y products herein. motorola mak es no w arranty , representation or guar antee regarding the suitability of its products f or any particular purpose , nor does motorola assume an y liability ar ising out of the application or use of an y product or circuit, and specifically disclaims an y and all liability , including without limitation consequential or incidental damages . "t ypical" par ameters can and do v ar y in diff erent applications. all oper ating parameters , including "t ypicals" m ust be v alidated f or each customer application b y customer's technical e xperts. motorola does not conve y an y license under its patent r ights nor the r ights of others . motorola products are not designed, intended, or author iz ed f or use as components in systems intended f or surgical implant into the body , or other applications intended to suppor t or sustain lif e , or f or an y other application in which the f ailure of the motorola product could create a situation where p ersonal injur y or death ma y occur. should buy er purchase or use motorola products f or any such unintended or unauthorized application, buy er shall indemnify and hold motorola and its officers , employees, subsidiaries, affiliates, and distributors harmless against all claims, costs, damages, and expenses, and reasonable attorney fees arising out of, directly or indirectly, any claim of personal injury or death associated with such unintended or unauthor ized use, ev en if such claim alleges that motorola w as negligent regarding the design or man uf acture of the par t. motorola and are registered tr ademar ks of motorola, inc. motorola, inc. is an equal oppor tunity/affir mativ e action emplo yer. MC68HC901 multi-function peripheral user? manual
ii MC68HC901 user? manual motorola trademarks: motorola and the motorola symbol are registered trademark(s) of motorola, inc.
motorola MC68HC901 user? manual iii 68k fax-it documentation comments fax 512-891-8593?ocumentation comments only the motorola high-performance embedded systems technical communications department provides a fax number for you to submit any questions or comments about this document or how to order other documents. we welcome your suggestions for improving our documentation. please do not fax technical questions. please provide the part number and revision number (located in upper right-hand corner of the cover) and the title of the document. when referring to items in the manual, please reference by the page number, paragraph number, figure number, table number, and line number if needed. when sending a fax, please provide your name, company, fax number, and phone number including area code. for internet access: telnet: pirs.aus.sps.mot.com (login: pirs) www: http: / / pirs.aus.sps.mot.com/aesop/hmpg.html query by email: aesop_query@pirs.aus.sps.mot.com (type ?elp in text body.) for dial-up: phone: +1-512-891-3650 phone (us or canada): 1-800-843-3451 connection settings: n/8/1/f data rate: < 14,400 bps terminal emulation: vt100 login: pirs for aesop questions: fax: +1-512-891-8775 email: aesop_sysop@pirs.aus.sps.mot.com for hotline questions: fax (us or canada): 1-800-248-8567 email: aesop_support@pirs.aus.sps.mot.com
iv MC68HC901 user? manual motorola applications and technical information for questions or comments pertaining to technical information, questions, and applications, please contact one of the following sales offices nearest you. ?sales offices field applications engineering available through all sales offices united states alabama , huntsville (205) 464-6800 arizona , tempe (602) 897-5056 california , agoura hills (818) 706-1929 california , los angeles (310) 417-8848 california , irvine (714) 753-7360 california , rosevllle (916) 922-7152 california , san diego (619) 541-2163 california , sunnyvale (408) 749-0510 colorado , colorado springs (719) 599-7497 colorado , denver (303) 337-3434 connecticut , wallingford (203) 949-4100 florida , maitland (407) 628-2636 florida , pompano beach/ fort lauderdale (305) 486-9776 florida , clearwater (813) 538-7750 georgla , atlanta (404) 729-7100 idaho , boise (208) 323-9413 illinois , chicago/hoffman estates (708) 490-9500 indlana , fort wayne (219) 436-5818 indiana , indianapolis (317) 571-0400 indiana , kokomo (317) 457-6634 iowa , cedar rapids (319) 373-1328 kansas , kansas city/mission (913) 451-8555 maryland , columbia (410) 381-1570 massachusetts , marborough (508) 481-8100 massachusetts , woburn (617) 932-9700 michigan , detroit (313) 347-6800 minnesota , minnetonka (612) 932-1500 missouri , st. louis (314) 275-7380 new jersey , fairfield (201) 808-2400 new york , fairport (716) 425-4000 new york , hauppauge (516) 361-7000 new york , poughkeepsie/fishkill (914) 473-8102 north carolina , raleigh (919) 870-4355 ohio , cleveland (216) 349-3100 ohio , columbus/worthington (614) 431-8492 ohio , dayton (513) 495-6800 oklahoma , tulsa (800) 544-9496 oregon , portland (503) 641-3681 pennsylvania , colmar (215) 997-1020 philadelphia/horsham (215) 957-4100 tennessee , knoxville (615) 584-4841 texas , austin (512) 873-2000 texas , houston (800) 343-2692 texas , plano (214) 516-5100 virginia , richmond (804) 285-2100 washington , bellevue (206) 454-4160 seattle access (206) 622-9960 wisconsin , milwaukee/brookfield (414) 792-0122 canada british columbia , vancouver (604) 293-7605 ontario , toronto (416) 497-8181 ontario , ottawa (613) 226-3491 quebec , montreal (514) 731-6881 international australia , melbourne (61-3)887-0711 australia , sydney (61(2)906-3855 brazil , sao paulo 55(11)815-4200 china , beijing 86 505-2180 finland , helsinki 358-0-35161191 car phone 358(49)211501 france , paris/vanves 33(1)40 955 900 germany , langenhagen/ hanover 49(511)789911 germany , munich 49 89 92103-0 germany , nuremberg 49 911 64-3044 germany , sindelfingen 49 7031 69 910 germany , wiesbaden 49 611 761921 hong kong , kwai fong 852-4808333 tai po 852-6668333 india , bangalore (91-812)627094 israel , tel aviv 972(3)753-8222 italy , milan 39(2)82201 japan , aizu 81(241)272231 japan , atsugi 81(0462)23-0761 japan , kumagaya 81(0485)26-2600 japan , kyushu 81(092)771-4212 japan , mito 81(0292)26-2340 japan , nagoya 81(052)232-1621 japan , osaka 81(06)305-1801 japan, sendai 81(22)268-4333 japan, tachikawa 81(0425)23-6700 japan, tokyo 81(03)3440-3311 japan , yokohama 81(045)472-2751 korea , pusan 82(51)4635-035 korea , seoul 82(2)554-5188 malaysia , penang 60(4)374514 mexico , mexico city 52(5)282-2864 mexico , guadalajara 52(36)21-8977 marketing 52(36)21-9023 customer service 52(36)669-9160 netherlands , best (31)49988 612 11 puerto rico , san juan (809)793-2170 singapore (65)2945438 spain , madrid 34(1)457-8204 or 34(1)457-8254 sweden , solna 46(8)734-8800 switzerland , geneva 41(22)7991111 switzerland , zurich 41(1)730 4074 talwan , taipei 886(2)717-7089 thailand , bangkok (66-2)254-4910 united kingdom , aylesbury 44(296)395-252 full line representatives colorado , grand junction cheryl lee whltely (303) 243-9658 kansas , wichita melinda shores/kelly greiving (316) 838 0190 nevada , reno galena technology group (702) 746 0642 new mexico , albuquerque s&s technologies, lnc. (505) 298-7177 utah , salt lake city utah component sales, inc. (801) 561-5099 washington , spokane doug kenley (509) 924-2322 argentina , buenos aires argonics, s.a. (541) 343-1787 hybrid components resellers elmo semiconductor (818) 768-7400 minco technology labs inc. (512) 834-2022 semi dice inc. (310) 594-4631
v MC68HC901 user? manual motorola preface the complete documentation package for the MC68HC901 consists of the MC68HC901 um/ ad and the m68000 family programmer? reference manual , which contains the complete instruction set for the m68000 family. the MC68HC901 multi-function peripheral user? manual describes the programming, capabilities, registers, and operation of the MC68HC901. this device is the hcmos version of the older mc68901 device and provides enhanced performance in several areas. the MC68HC901 provides a full-function single-channel usart, an eight-source interrupt controller, four 8-bit timers, and eight parallel i/o lines. the organization of this manual is as follows: section 1 introduction section 2 signal description section 3 bus operation section 4 interrupt structure section 5 general purpose input/output port section 6 timers section 7 universal synchronous/asynchronous receiver-transmitter section 8 electrical characteristics section 9 mechanical data and ordering information
preliminary motorola MC68HC901 user?s manual vii table of contents paragraph page number title number section 1 introduction 1.1 key features .............................................................................................1-2 1.2 register programming ...............................................................................1-2 section 2 signal description 2.1 power supply (v cc and gnd) .................................................................. 2-1 2.2 clock (clk) .............................................................................................. 2-2 2.3 data bus (d7ed0) .................................................................................... 2-2 2.4 asynchronous bus control ....................................................................... 2-2 2.4.1 chip select (cs ) .................................................................................. 2-2 2.4.2 data strobe (ds ) ................................................................................. 2-2 2.4.3 read/write (r/w ) ................................................................................ 2-2 2.4.4 data transfer acknowledge (dtack ) ................................................. 2-2 2.5 register select bus (rs1ers5) ............................................................... 2-2 2.6 reset (reset ) ......................................................................................... 2-2 2.7 interrupt control ........................................................................................ 2-3 2.7.1 interrupt request (irq ) ....................................................................... 2-3 2.7.2 interrupt acknowledge (iack ) ............................................................. 2-3 2.7.3 interrupt enable in (iei ) ....................................................................... 2-3 2.7.4 interrupt enable out (ieo ) ................................................................... 2-3 2.8 general purpose i/o interrupt lines (i7ei0) ............................................. 2-3 2.9 timer control ............................................................................................ 2-4 2.9.1 timer inputs (tai and tbi) .................................................................. 2-4 2.9.2 timer outputs (tao, tbo, tco, and tdo) ....................................... 2-4 2.9.3 timer clock (xtal1 and xtal2) ........................................................ 2-4 2.10 serial i/o control ...................................................................................... 2-4 2.10.1 serial input (si) .................................................................................... 2-4 2.10.2 serial output (so) ............................................................................... 2-5 2.10.3 receiver clock (rc) ............................................................................ 2-5 2.10.4 transmitter clock (tc) ........................................................................ 2-5 2.11 direct memory access control ................................................................. 2-5 2.11.1 receiver ready (rr ) .......................................................................... 2-5 2.11.2 transmitter ready (tr ) ....................................................................... 2-5 2.12 signal summary ....................................................................................... 2-5
table of contents (continued) paragraph page number title number viii MC68HC901 user?s manual motorola section 3 bus operation 3.1 data transfer operations ......................................................................... 3-1 3.1.1 read cycle .......................................................................................... 3-1 3.1.2 write cycle .......................................................................................... 3-2 3.2 interrupt acknowledge operation ............................................................. 3-2 3.3 reset operation ....................................................................................... 3-3 section 4 interrupt structure 4.1 interrupt processing ................................................................................. 4-1 4.1.1 interrupt channel prioritization ............................................................ 4-1 4.1.2 interrupt vector number ...................................................................... 4-1 4.1.3 vector register (vr) ........................................................................... 4-2 4.2 daisy-chaining mfps ............................................................................... 4-3 4.3 interrupt control registers ....................................................................... 4-4 4.3.1 interrupt enable registers (iera, ierb) ............................................ 4-4 4.3.2 interrupt pending registers (ipra, iprb) .......................................... 4-6 4.3.3 interrupt mask registers (imra, imrb) .............................................. 4-8 4.3.4 interrupt in-service registers (isra, isrb) ..................................... 4-10 4.4 nesting mfp interrupts ........................................................................... 4-11 4.4.1 selecting the end-of-interrupt mode ................................................. 4-11 4.4.2 automatic end-of-interrupt mode ..................................................... 4-12 4.4.3 software end-of-interrupt mode ....................................................... 4-12 section 5 general purpose input/output port 5.1 gpip control registers ............................................................................ 5-1 5.1.1 general purpose i/o data register (gpdr) ....................................... 5-1 5.1.2 active edge register (aer) ................................................................ 5-1 5.1.3 data direction register (ddr) ............................................................ 5-2 section 6 timers 6.1 operation modes ...................................................................................... 6-1 6.1.1 delay mode operation ........................................................................ 6-1 6.1.2 pulse width measurement operation ................................................. 6-2 6.1.3 event count mode operation .............................................................. 6-3 6.2 timer registers ........................................................................................ 6-4
table of contents (continued) paragraph page number title number motorola MC68HC901 user?s manual ix 6.2.1 timer data registers (txdr) .............................................................. 6-4 6.2.2 timer control registers (txcr) .......................................................... 6-4 section 7 universal synchronous/asynchronous receiver-transmitter 7.1 character protocols .................................................................................. 7-1 7.1.1 asynchronous format ......................................................................... 7-2 7.1.2 synchronous format ........................................................................... 7-2 7.1.3 usart control register (ucr) .......................................................... 7-3 7.1.4 usart data register (udr) .............................................................. 7-4 7.2 receiver .................................................................................................... 7-4 7.2.1 receiver interrupt channels ................................................................ 7-5 7.2.2 receiver status register (rsr) .......................................................... 7-5 7.2.3 special receive conditions ................................................................. 7-7 7.3 transmitter ................................................................................................ 7-7 7.3.1 transmitter interrupt channels ............................................................ 7-8 7.3.2 transmitter status register (tsr) ...................................................... 7-8 7.4 dma operation ......................................................................................... 7-9 section 8 electrical characteristics 8.1 maximum ratings ..................................................................................... 8-1 8.2 thermal characteristics ............................................................................ 8-1 8.3 power considerations ............................................................................... 8-2 8.4 dc electrical characteristics .................................................................... 8-3 8.5 capacitance .............................................................................................. 8-3 8.6 clock timing ............................................................................................. 8-4 8.7 ac electrical characteristics .................................................................... 8-5 8.8 timer ac characteristics .......................................................................... 8-7 section 9 mechanical data and ordering information 9.1 pin assignments ....................................................................................... 9-1 9.2 package dimensions ................................................................................ 9-2 9.3 ordering information ................................................................................. 9-4
preliminary motorola MC68HC901 user?s manual xi list of illustrations figure page number title number 1-1. mfp block diagram ........................................................................................ 1-1 2-1. input and output signals ................................................................................ 2-1 3-1. read cycle timing diagram ........................................................................... 3-2 3-2. write cycle timing diagram ........................................................................... 3-2 3-3. iack cycle timing diagram ........................................................................... 3-3 4-1. daisy-chained interrupt structure ................................................................... 4-3 4-2. conceptual circuits of an interrupt channel ................................................... 4-9 6-1. conceptual circuit of interrupt source selection ............................................ 6-2 8-1. clock input timing diagram ............................................................................ 8-4 8-2. mfp external oscillator components ............................................................. 8-4 8-3. read cycle timing .......................................................................................... 8-8 8-4. write cycle timing .......................................................................................... 8-8 8-5. interrupt acknowledge cycle (iei low) ........................................................... 8-9 8-6. interrupt acknowledge cycle (iei high) ........................................................ 8-10 8-7. interrupt timing ............................................................................................. 8-10 8-8. port timing .................................................................................................... 8-10 8-9. reset timing ................................................................................................. 8-11 8-10. receiver timing ............................................................................................ 8-11 8-11. transmitter timing ........................................................................................ 8-11 8-12. timer timing ................................................................................................. 8-12 9-1. 48-pin dual-in-line package (plastic) ............................................................ 9-1 9-2. 52-lead quad package ................................................................................. 9-2 9-3. case 767-02ep suffix ..................................................................................... 9-2 9-4. case 778-02efn suffix ................................................................................... 9-3
preliminary motorola MC68HC901 user?s manual xiii list of tables table page number title number 1-1. mfp register map ......................................................................................... 1-2 2-1. signal summary ............................................................................................. 2-5
motorola MC68HC901 user?s manual 1-1 section 1 introduction the MC68HC901 multi-function peripheral (mfp) is a member of the m68000 family of peripherals. unless otherwise specified, the MC68HC901 multi-function peripheral is hereafter referred to as the mfp in this document. many features of the mfp make reference to the mc68000 family of 16- and 32-bit microprocessors, which includes the mc68hc000, mc68hc001, and the mc68ec000. these microprocessors are referred to as the mc68000 within this document. the mfp directly interfaces to the mc68000 via the asynchronous bus structure. both vectored and polled interrupt schemes are supported with the mfp providing unique vector number generation for each of its 16 interrupt sources. additionally, handshake lines are provided to facilitate direct memory access controller (dmac) interfacing. refer to figure 1-1 for a block diagram of the mfp. figure 1-1. mfp block diagram internal control logic clk gnd v cc reset timers c & d tco tdo xtal1 xtal2 tao tai tbo tbi timers a & b usart si rc so tc tr rr i / o interrupts general purpose i0 ?i7 cpu bus i / o interrupt control irq iei iack d0 ?d7 rs1 ?rs5 r / w dtack cs ds ieo MC68HC901um / ad figure - mfp block diagram
introduction 1-2 MC68HC901 user?s manual motorola 1.1 key features the mfp performs many of the functions common to most microprocessor-based systems. the resources available to the user include: eight individually programmable i/o pins with interrupt capability 16-source interrupt controller with individual source enable and masking four timers, two of which are multi-mode timers single-channel full-duplex universal synchronous/asynchronous receiver-transmitter (usart) which supports: ? asynchronous formats ? byte synchronous formats, with the addition of a polynomial generator checker by incorporating multiple functions within the mfp, the system designer retains flexibility while minimizing device count. 1.2 register programming from a programmer's point of view, the versatility of the mfp may be attributed to its register set. the registers are well organized and allow the mfp to be easily tailored to a variety of applications. all of the 24 registers are also directly addressable which simplifies programming. the register map is shown in table 1-1. table 1-1. mfp register map address abbreviation register name hex binary rs5 rs4 rs3 rs2 rs1 01 0 0 0 0 0 gpdr general purpose i / o data register 03 0 0 0 0 1 aer active edge register 05 0 0 0 1 0 ddr data direction register 07 0 0 0 1 1 iera interrupt enable register a 09 0 0 1 0 0 ierb interrupt enable register b 0b 0 0 1 0 1 ipra interrupt pending register a 0d 0 0 1 1 0 iprb interrupt pending register b 0f 0 0 1 1 1 isra interrupt in-service register a 11 0 1 0 0 0 isrb interrupt in-service register b 13 0 1 0 0 1 imra interrupt mask register a 15 0 1 0 1 0 imrb interrupt mask register b
introduction motorola MC68HC901 user?s manual 1-3 17 0 1 0 1 1 vr vector register 19 0 1 1 0 0 tacr timer a control register 1b 0 1 1 0 1 tbcr timer b control register 1d 0 1 1 1 0 tcdcr timers c and d control register 1f 0 1 1 1 1 tadr timer a data register 21 1 0 0 0 0 tbdr timer b data register 23 1 0 0 0 1 tcdr timer c data register 25 1 0 0 1 0 tdcr timer d data register 27 1 0 0 1 1 scr synchronous character register 29 1 0 1 0 0 ucr usart control register 2b 1 0 1 0 1 rsr receiver status register 2d 1 0 1 1 0 tsr transmitter status register 2f 1 0 1 1 1 udr usart data register note: hex addresses assume that rs1 connects with a1, rs2 connects with a2, etc., and that ds is connected to lds on the mc68000 or ds is connected to ds on the mc68008. table 1-1. mfp register map (continued) address abbreviation register name hex binary rs5 rs4 rs3 rs2 rs1
motorola MC68HC901 user? manual 2-1 section 2 signal description this section contains descriptions of the input and output signals. the input and output signals can be functionally organized into groups as shown in figure 2-1. the following paragraphs provide a brief description of the signal and a reference (if applicable) to other sections that contain more detail about its function. note assertion and negation are used to specify forcing a signal to a particular state. assertion and assert refer to a signal that is active or true. negation and negate refer to a signal that is inactive or false. these terms are used independently of the voltage level (high or low) that they represent. figure 2-1. input and output signals 2.1 power supply (v cc and gnd) power is supplied to the mfp using these connections. the v cc pin is powered at +5 volts, and ground is connected to the gnd pins. MC68HC901um / ad figure - input and output signals i0 ?i7 tai tbi tbo tco tdo xtal1 xtal2 serial i / o control si so rc tc tao timer control tr data bus d0 ?d7 rs1 ?rs5 irq gnd clk v cc cs ds r / w dtack interrupt control asynchronous bus control ieo iei iack reset MC68HC901 multi-function peripheral (mfp) rr reg sel power supply gpip control dma
signal description 2-2 MC68HC901 user? manual motorola 2.2 clock (clk) the clock input is a single-phase ttl-compatible signal used for internal timing. this input must conform to minimum pulse width times. the clock is not necessarily the system clock in frequency or phase. 2.3 data bus (d7?0) this three-state bidirectional bus is used to transmit data to or receive data from the mfp internal registers during a processor read or write cycle, respectively. during an interrupt acknowledge cycle, the data bus is used to pass a vector number to the processor. the mfp must be located on data bus lines d7?0 when used with either the mc68000 series of microprocessors and on data lines d31?24 when used with the mc68020 microprocessor, if vectored interrupts are to be used. 2.4 asynchronous bus control asynchronous data transfers are controlled by chip select, data strobe, read/write, and data transfer acknowledge. the register select lines, rs5?s1, select an internal mfp register for a read or write operation. the reset line initializes the mfp registers and the internal control signals. 2.4.1 chip select (cs ) this active low input activates the mfp for internal register access. cs and iack must not be asserted at the same time. 2.4.2 data strobe (ds ) this active low input is part of the internal chip select and interrupt acknowledge functions. 2.4.3 read/write (r/w ) this input defines the current bus cycle as a read (high) or a write (low) cycle. 2.4.4 data transfer acknowledge (dtack ) this active low, three-state output signals the completion of the operation phase of a bus cycle to the processor. if the bus cycle is a process read, the mfp asserts dtack to indicate that the information on the data bus is valid. if the bus cycle is a processor write to the mfp, dtack acknowledges the acceptance of the data by the mfp. dtack will be asserted only by a mfp that has cs or iack (and iei ) asserted. 2.5 register select bus (rs1?s5) the register select bus selects an internal mfp register during a read or write operation. 2.6 reset (reset ) this active low input will initialize the mfp during powerup or in response to a total system reset. refer to section 3.3 reset operation for further information.
signal description motorola MC68HC901 user? manual 2-3 2.7 interrupt control the interrupt request and interrupt acknowledge signals are handshake lines for a vectored interrupt scheme. interrupt enable in and interrupt enable out implement a daisy-chained interrupt structure. 2.7.1 interrupt request (irq ) this active low, open-drain output signals to the processor that an interrupt is pending from the mfp. there are 16 interrupt channels that can generate an interrupt request. clearing the interrupt pending registers (ipra and iprb) or clearing the interrupt mask registers (imra and imrb) will cause the irq to be negated. irq will also be negated as the result of an interrupt acknowledge cycle, unless additional interrupts are pending in the mfp. refer to section 4 interrupt structure for further information. 2.7.2 interrupt acknowledge (iack ) if both irq and iei are asserted, the mfp will begin an interrupt acknowledge cycle when iack and ds are asserted. the mfp will supply a unique vector number to the processor which corresponds to the particular channel requesting interrupt service. in a daisy-chained interrupt structure, all devices in the chain must have a common iack . refer to section 3.2 interrupt acknowledge operation and section 4.1.2 interrupt vector number for additional information. cs and iack must not be asserted at the same time. 2.7.3 interrupt enable in (iei ) this active low input, together with the ieo signal, provides a daisy-chained interrupt structure for a vectored interrupt scheme. iei indicates that no higher priority device is requesting interrupt service. so, the highest priority mfp in the chain should have its iei pin tied low. during an interrupt acknowledge cycle, a mfp with a pending interrupt is not allowed to pass a vector number to the processor until its iei pin is asserted. when the daisy-chain option is not implemented, all mfps should have their iei pin tied low. refer to section 4.2 daisy-chaining mfps for additional information. 2.7.4 interrupt enable out (ieo ) this active low output, together with the iei signal, provides a daisy-chained interrupt structure for a vectored interrupt scheme. the ieo of a particular mfp signals lower priority devices that neither it nor any other higher priority device is requesting interrupt service. when a daisy-chain is implemented, ieo is tied to the next lower priority mfp iei input. the lowest priority mfp is not connected. when the daisy-chain option is not implemented, ieo is not connected. refer to section 4.2 daisy-chaining mfps for additional information. 2.8 general purpose i/o interrupt lines (i7?0) these lines constitute an 8-bit pin-programmable i/o port with interrupt capability. the data direction register (ddr) individually defines each line as either a high-impedance input or a ttl-compatible output. as an input, each line can generate an interrupt on the user selected transition of the input signal. refer to section 5 general purpose input/output port for further information.
signal description 2-4 MC68HC901 user? manual motorola 2.9 timer control these lines provide internal timing and auxiliary timer control inputs required for certain operating modes. additionally, the timer outputs are included in this group. 2.9.1 timer inputs (tai and tbi) these input lines are control signals for timers a and b in the pulse width measurement mode and the event count mode. these signals generate interrupts at the same priority level as the general purpose i/o interrupt lines i4 and i3, respectively, when in the pulse width measurement mode. while i4 and i3 do not have interrupt capability when timers a and b are operated in this mode, they may still be used for i/o. refer to section 6.1.2 pulse width measurement mode operation and section 6.1.3 event count mode operation for further information. 2.9.2 timer outputs (tao, tbo, tco, and tdo) each timer has an associated output which toggles when its main counter counts through 01 (hexadecimal) regardless of which operational mode is selected. when in the delay mode, the timer output will be a square wave with a period equal to two timer cycles. this output may be used to supply the universal synchronous/asynchronous receiver-transmitter (usart) baud rate clocks. 2.9.3 timer clock (xtal1 and xtal2) these pins provide the timing signal for the four timers. a crystal can be connected between the timer clock pins, xtal1 and xtal2, or xtal1 can be driven with a cmos-level clock while xtal2 is not connected. the following crystal parameters are suggested: 1. parallel resonance, fundamental mode at-cut, hc6 or hc33 holder 2. frequency tolerance measured with 18 picofarads load (0.1% accuracy) ?drive level 10 microwatts 3. shunt capacitance equals 7 picofarads 4. series resistance: 2.0 < f < 2.7 mhz; rs 300 ohms 2.8 < f < 4.0 mhz; rs 150 ohms 2.10 serial i/o control the full duplex serial channel is implemented by a serial input line. the independent receive and transmit sections may be clocked by separate timing signals on the receive clock input and the transmitter clock input. 2.10.1 serial input (si) this input line is the usart receiver data input. this input is not used in the usart loopback mode. refer to section 7.3.2 transmitter status register for additional information.
signal description 2-5 MC68HC901 user? manual motorola 2.10.2 serial output (so) this output line is the usart transmitter data output. this output is in a high-impedance state after a device reset. 2.10.3 receiver clock (rc) this input controls the serial bit rate of the receiver. the signal may be supplied by the timer output lines or by an external ttl-level clock which meets the minimum and maximum cycle times. this clock is not used in the usart loopback mode. refer to section 7.3.2 transmitter status register for additional information. 2.10.4 transmitter clock (tc) this input controls the serial bit rate of the transmitter. this signal may be supplied by the timer output lines or by an external ttl-level clock which meets the minimum and maximum cycle times. 2.11 direct memory access control the usart section of the mfp supports direct memory access transfers through its receiver ready and transmitter ready status lines. 2.11.1 receiver ready (rr ) this active low output reflects the receiver buffer full status (bit 7 in the receiver status register) for dma operations. 2.11.2 transmitter ready (tr ) this active low output reflects the transmitter buffer empty (bit 7 in the transmitter status register) for dma operations. 2.12 signal summary the following table is a summary of all the signals discussed in the previous paragraphs. table 2-1. signal summary signal name mnemonic input/ output active state three- state reset state power input v cc input high ground gnd input low clock clk input n / a chip select cs input low data strobe ds input low read / write r / w input read ?high, write ?low
signal description 2-6 MC68HC901 user? manual motorola data transfer acknowledge dtack output low yes high register select bus rs1 ?rs5 input n / a data bus d0 ?d7 input / output n / a yes hi-z reset reset input low interrupt request irq output low no* high interrupt acknowledge iack input low interrupt enable in iei input low interrupt enable out ieo output low no high general purpose i / o i0 ?i7 input / output n / a yes hi-z timer clock xtal1 input n / a xtal2 output n / a no timer inputs tai, tbi input n / a timer outputs tao, tbo, tco, tdo output n / a no low serial input si input n / a serial output so output n / a yes hi-z receiver clock rc input n / a transmitter clock tc input n / a receiver ready rr output low no high transmitter ready tr output low no low * open drain table 2-1. signal summary (continued) signal name mnemonic input/ output active state three- state reset state
motorola MC68HC901 user?s manual 3-1 section 3 bus operation the following paragraphs describe control signals and the bus operation during data transfer, interrupt acknowledge, and reset operations. 3.1 data transfer operations transfer of data between devices involves the following pins: register select bus e rs1 through rs5 data bus e d0 through d7 control signals the address and data buses are separate parallel buses used to transfer data using an asynchronous bus structure. in all cases, the bus master assumes responsibility for deskewing all signals it issues at both the start and end of a cycle. additionally, the bus master is responsible for deskewing the acknowledge and data signals from the peripheral devices. 3.1.1 read cycle to read an mfp register, cs and ds must be asserted, and r/w must be high. the mfp will place the contents of the register which is selected by the register select bus (rs1 through rs5) on the data bus (d0 through d7) and then assert dtack . the register addresses are shown in table 1-1. after the processor has latched the data, it negates ds . the negation of either cs or ds will terminate the read operation. the mfp will drive dtack high and place it and the data bus in the high-impedance state. the timing for a read cycle is shown in figure 3-1. refer to section 8.7 ac electrical characteristics for actual timing numbers.
bus operation 3-2 MC68HC901 user?s manual motorola figure 3-1. read cycle timing diagram 3.1.2 write cycle to write a register, cs and ds must be asserted, and r/w must be low. the mfp will decode the address bus to determine which register is selected. then the register will be loaded with the contents of the data bus on the next valid falling edge of clk, and dtack will be asserted. when the processor recognizes dtack , it will negate ds . the write cycle is terminated when either cs or ds is negated. the mfp will drive dtack high and place it in the high-impedance state. the timing for a write cycle is shown in figure 3-2. refer to section 8.7 ac electrical characteristics for actual timing numbers. figure 3-2. write cycle timing diagram 3.2 interrupt acknowledge operation the mfp has 16 interrupt sources: eight internal and eight external. when an interrupt request is pending, the mfp will assert irq . in a vectored interrupt scheme, the processor will acknowledge the interrupt request by performing an interrupt acknowledge cycle. iack and ds will be asserted. the mfp responds to the iack signal by placing a vector number on the data bus. this vector number corresponds to the particular interrupt channel requesting service. the format of this vector number is further discussed in section 4.1.2 interrupt vector number . clk r / w rs1 - rs5 d0 - d7 dtack cs ds figure - read cycle timing diagram MC68HC901um / ad figure - write cycle timing diagram MC68HC901um / ad clk r / w rs1 - rs5 d0 - d7 dtack cs ds
bus operation motorola MC68HC901 user?s manual 3-3 when the mfp asserts dtack to indicate that valid data is on the bus, the processor will latch the data and terminate the bus cycle by negating ds . when either ds or iack is negated, the mfp will terminate the interrupt acknowledge operation by driving dtack high and placing it in the high-impedance state. irq will be negated as a result of the iack cycle unless additional interrupts are pending. the mfp can be part of a daisy-chain interrupt structure which allows multiple mfps to be placed at the same interrupt level by sharing a common iack signal. a daisy-chain priority scheme is implemented with signals iei and ieo . iei indicates that no higher priority device is requesting interrupt service. ieo signals lower priority devices that neither this device nor any higher priority mfp is requesting service. to daisy-chain mfps, the highest priority mfp has its iei tied low and successive mfps have their iei connected to the next higher priority mfps ieo . when the daisy-chain interrupt structure is not implemented, the iei s of all mfps must be tied low and the ieo s left unconnected. refer to section 4.2 daisy-chaining mfps for additional information. when the processor initiates an interrupt acknowledge cycle by driving iack and ds , the mfp, whose iei is low, may respond with a vector number if an interrupt is pending. if this device does not have a pending interrupt, ieo is asserted which allows the next lower priority device to respond to the interrupt acknowledge. when an mfp propagates ieo , it will not drive the data bus nor dtack during the interrupt acknowledge cycle. the timing for an iack cycle is shown in figure 3-3. refer to section 8.7 ac electrical characteristics and figures 7-7 and 7-8 for further information. figure 3-3. iack cycle timing diagram 3.3 reset operation the reset operation will initialize the mfp to a known state. the reset operation requires that the reset input be asserted for a minimum of two microseconds. during a device reset condition, all internal mfp registers are cleared except for the timer data registers (tadr, tbdr, tcdr, and tddr), the usart data register (udr), and the transmitter status register (tsr). all timers are stopped, the usart receiver and transmitter are disabled, and the serial output (so) line is placed in high impedance. the interrupt channels are also disabled and any pending interrupts are cleared. in addition, the general purpose interrupt clk d0 - d7 dtack ds iack iei ieo MC68HC901um / ad figure - iack cycle timing diagram
bus operation 3-4 MC68HC901 user?s manual motorola i/o lines are placed in the high-impedance input mode, and the timer outputs are driven low. external mfp signals are negated. since the vector register (vr) is initialized to a $00, an uninitialized mfp may not respond to an interrupt acknowledge cycle with the uninitialized interrupt vector, $0f. refer to section 4.1.2 interrupt vector number for more information.
motorola MC68HC901 user?s manual 4-1 section 4 interrupt structure in an m68000 system, the mfp will be assigned to one of the seven possible interrupt levels. all interrupt service requests from the mfp 16 interrupt channels will be presented at this level. as an interrupt controller, the mfp will internally prioritize its 16 interrupt sources. additional interrupt sources may be placed at the same interrupt level by daisy-chaining multiple mfps. the mfps will be prioritized by their position in the chain. 4.1 interrupt processing each mfp provides individual interrupt capability for its various functions. when an interrupt is received on one of the external interrupt channels or from one of the eight internal sources, the mfp will request interrupt service. the 16 interrupt channels are assigned a fixed priority so that multiple pending interrupts are serviced according to their relative importance. since the mfp can internally generate 16 vector numbers, the unique vector number which corresponds to the highest priority channel that has a pending interrupt is presented to the processor during an interrupt acknowledge cycle. this unique vector number allows the processor to immediately begin execution of the interrupt handler for the interrupting source, decreasing interrupt latency. 4.1.1 interrupt channel prioritization the 16 interrupt channels are prioritized from highest to lowest, with general purpose interrupt 7 (i7) being the highest and i0 the lowest. the priority of the interrupt is determined by the least-significant four bits in the interrupt vector number which are internally generated by the mfp. pending interrupts are presented to the processor in order of priority unless they have been masked. by selectively masking interrupts, the channels are in effect re-prioritized. 4.1.2 interrupt vector number during an interrupt acknowledge cycle, a unique 8-bit interrupt vector number is presented to the system which corresponds to the specific interrupt source that is requesting service. v7-v4 ? vector the four most significant bits are copied from the vector register. bit 7 6 5 4 3 2 1 0 field v7 v6 v5 v4 iv3 iv2 iv1 iv0
interrupt structure 4-2 MC68HC901 user?s manual motorola iv3-iv0 ? interrupt vector these bits are supplied by the mfp. they are the binary channel number of the highest priority channel that is requesting interrupt service. 4.1.3 vector register (vr) this 8-bit register determines the four most-significant bits in the interrupt vector format and which end-of-interrupt mode is used in a vectored interrupt scheme. the vector register should be written to before writing to the interrupt mask or enable registers to ensure that the mfp responds to an interrupt acknowledge cycle with a vector number not in the range of allowable user vectors. for information refer to section 4.4.1 selecting the end-of- interrupt mode . iv3 iv2 iv1 iv0 description 1 1 1 1 general purpose interrupt 7 (i7) 1 1 1 0 general purpose interrupt 6 (i6) 1 1 0 1 timer a 1 1 0 0 receiver buffer full 1 0 1 1 receive error 1 0 1 0 transmit buffer empty 1 0 0 1 transmit error 1 0 0 0 timer b 0 1 1 1 general purpose interrupt 5 (i5) 0 1 1 0 general purpose interrupt 4(i4) 0 1 0 1 timer c 0 1 0 0 timer d 0 0 1 1 general purpose interrupt 3 (i3) 0 0 1 0 general purpose interrupt 2 (i2) 0 0 0 1 general purpose interrupt 1 (i1) 0 0 0 0 general purpose interrupt 0 (i0) vr register bit 7 6 5 4 3 2 1 0 field v7 v6 v5 v4 s * * * reset 0 0 0 0 0 0 0 0 addr $17
interrupt structure motorola MC68HC901 user?s manual 4-3 v7-v4 ? vector these upper four bits of the vector register are written by the user. these bits become the most-significant four bits of the interrupt vector number. s ? in-service register enable 1 = software end-of-interrupt mode and in-service register bits enabled. 0 = automatic end-of-interrupt mode and in-service register bits forced low. bits 2-0 ? *unused unused bits read as zero. 4.2 daisy-chaining mfps as an interrupt controller, the mfp will support eight external interrupt sources in addition to its eight internal interrupt sources. when a system requires more than eight external interrupt sources to be placed at the same interrupt level, sources may be added to the prioritized structure by daisy-chaining mfps. interrupt sources are prioritized internally within each mfp, and the mfps are prioritized by their position in the chain. unique vector numbers are provided for each interrupt source. the iei and ieo signals implement the daisy-chained structure. the iei of the highest priority mfp is tied low and the ieo output of this device is tied to the next highest priority mfp iei . the iei and ieo signals are daisy-chained in this manner for all the mfps in the chain with the lowest priority mfp ieo left unconnected. figure 4-1 shows a diagram of the interrupt daisy-chain. daisy-chaining requires that all parts in the chain have a common iack . when the common iack is asserted during an interrupt acknowledge cycle, all parts will prioritize interrupts in parallel. when the iei signal to an mfp is asserted, the part may respond to the iack cycle if it requires interrupt service. otherwise, the part will assert ieo to the next lower priority device. thus, priority is passed down the chain via iei and ieo until a part which has a pending interrupt is reached. the part with the pending interrupt passes a vector number to the processor and does not propagate ieo . figure 4-1. daisy-chained interrupt structure figure - daisy-chained interrupt structure MC68HC901um / ad iack highest priority MC68HC901 iei ieo iack lowest priority MC68HC901 iei iack MC68HC901 iei ieo iack
interrupt structure 4-4 MC68HC901 user?s manual motorola 4.3 interrupt control registers mfp interrupt processing is managed by the enable registers a and b, interrupt pending registers a and b, and interrupt mask registers a and b. these registers allow the programmer to enable or disable individual interrupt channels, mask individual interrupt channels, and access pending interrupt status information. in-service registers a and b allow interrupts to be nested as described in section 4.4 nesting mfp interrupts . the interrupt control registers are shown in the following paragraphs. 4.3.1 interrupt enable registers (iera, ierb) the interrupt channels are individually enabled or disabled by writing a one or a zero, respectively, to the appropriate bit of interrupt enable register a or b (iera or ierb). the processor may read these registers at any time. when a channel is enabled, interrupts received on the channel will be recognized by the mfp, and irq will be asserted to the processor indicating that interrupt service is required. on the other hand, a disabled channel is completely inactive; interrupts received on the channel are ignored by the mfp. writing a zero to a bit of interrupt enable register a or b will cause the corresponding bit of the interrupt pending register to be cleared. this will terminate all interrupt service requests for the channel and also negate irq unless interrupts are pending from other sources. disabling a channel, however, does not affect the corresponding bit in interrupt in-service registers a or b. so, if the mfp is in the software end-of-interrupt mode (refer to section 4.4.3 software end-of-interrupt mode ) and an interrupt is in service when a channel is disabled, the in-service bit of that channel will remain set until cleared by software. gpip7-gpip6 ? general purpose interrupt enable 1 = enable. 0 = disable. timer a ? timer a interrupt enable 1 = enable. 0 = disable. receiver buffer full ? receiver buffer full interrupt enable 1 = enable. 0 = disable. iera register bit 7 6 5 4 3 2 1 0 field gpip7 gpip6 timer a rcv buffer full rcv error xmit buffer empty xmit error timer b reset 0 0 0 0 0 0 0 0 addr $07
interrupt structure 4-5 MC68HC901 user?s manual motorola receiver error ? receiver buffer full interrupt enable 1 = enable. 0 = disable. transmitter buffer empty ? transmitter buffer interrupt enable 1 = enable. 0 = disable. transmitter error ? transmitter error interrupt enable 1 = enable. 0 = disable. timer b ? timer b interrupt enable 1 = enable. 0 = disable. gpip5-gpip4 ? general purpose interrupt enable 1 = enable. 0 = disable. timer c ? timer c interrupt enable 1 = enable. 0 = disable. timer d ? timer d interrupt enable 1 = enable. 0 = disable. gpip3-gpip0 ? general purpose interrupt enable 1 = enable. 0 = disable. ierb register bit 7 6 5 4 3 2 1 0 field gpip5 gpip4 timer c timer d gpip3 gpip2 gpip1 gpip0 reset 0 0 0 0 0 0 0 0 addr $09
interrupt structure 4-6 MC68HC901 user?s manual motorola 4.3.2 interrupt pending registers (ipra, iprb) when an interrupt is received on an enabled channel, the corresponding interrupt pending bit is set in interrupt pending register a or b (ipra or iprb). in a vectored interrupt scheme, this bit will be cleared when the processor acknowledges the interrupting channel and the mfp responds with a vector number. in a polled interrupt system, the interrupt pending registers must be read to determine the interrupting channel, and then the interrupt pending bit is cleared by the interrupt handling routine without performing an interrupt acknowledge sequence. gpip7-gpip6 ? general purpose interrupt pending 1 = pending. 0 = cleared. timer a ? timer a interrupt pending 1 = pending. 0 = cleared. receiver buffer full ? receiver buffer full interrupt pending 1 = pending. 0 = cleared. receiver error ? receiver buffer full interrupt pending 1 = pending. 0 = cleared. transmitter buffer empty ? transmitter buffer interrupt pending 1 = pending. 0 = cleared. transmitter error ? transmitter error interrupt pending 1 = pending. 0 = cleared. timer b ? timer b interrupt pending 1 = pending. 0 = cleared. ipra register bit 7 6 5 4 3 2 1 0 field gpip7 gpip6 timer a rcv buffer full rcv error xmit buffer empty xmit error timer b reset 0 0 0 0 0 0 0 0 addr $0b
interrupt structure 4-7 MC68HC901 user?s manual motorola gpip5-gpip4 ? general purpose interrupt pending 1 = pending. 0 = cleared. timer c ? timer c interrupt pending 1 = pending. 0 = cleared. timer d ? timer d interrupt pending 1 = pending. 0 = cleared. gpip3-gpip0 ? general purpose interrupt pending 1 = pending. 0 = cleared. iprb register bit 7 6 5 4 3 2 1 0 field gpip5 gpip4 timer c timer d gpip3 gpip2 gpip1 gpip0 reset 0 0 0 0 0 0 0 0 addr $0d
interrupt structure 4-8 MC68HC901 user?s manual motorola 4.3.3 interrupt mask registers (imra, imrb) interrupts are masked for a channel by clearing the appropriate bit in interrupt mask register a or b (imra or imrb). even though an enabled channel is masked, the channel will recognize subsequent interrupts and set its interrupt pending bit. however, the channel is prevented from requesting interrupt service (irq to the processor) as long as the mask bit for that channel is cleared. if a channel is requesting interrupt service at the time that its corresponding bit in imra or imrb is cleared, the request will cease, and irq will be negated unless another channel is requesting interrupt service. later, when the mask bit is set, any pending interrupt on the channel will be processed according to the channel's assigned priority. imra and imrb may be read at any time. figure 4-2 provides a conceptual circuit of an mfp interrupt channel. gpip7-gpip6 ? general purpose interrupt mask 1 = unmask. 0 = mask. timer a ? timer a interrupt mask 1 = unmask. 0 = mask. receiver buffer full ? receiver buffer full interrupt mask 1 = unmask. 0 = mask. receiver error ? receiver buffer full interrupt mask 1 = unmask. 0 = mask. transmitter buffer empty ? transmitter buffer interrupt mask 1 = unmask. 0 = mask. transmitter error ? transmitter error interrupt mask 1 = unmask. 0 = mask. imra register bit 7 6 5 4 3 2 1 0 field gpip7 gpip6 timer a rcv buffer full rcv error xmit buffer empty xmit error timer b reset 0 0 0 0 0 0 0 0 addr $13
interrupt structure 4-9 MC68HC901 user?s manual motorola timer b ? timer b interrupt mask 1 = unmask. 0 = mask. gpip5-gpip4 ? general purpose interrupt mask 1 = unmask. 0 = mask. timer c ? timer c interrupt mask 1 = unmask. 0 = mask. timer d ? timer d interrupt mask 1 = unmask. 0 = mask. gpip3-gpip0 ? general purpose interrupt mask 1 = unmask. 0 = mask. figure 4-2. conceptual circuits of an interrupt channel imrb register bit 7 6 5 4 3 2 1 0 field gpip5 gpip4 timer c timer d gpip3 gpip2 gpip1 gpip0 reset 0 0 0 0 0 0 0 0 addr $15 figure - conceptual circuits of an interrupt channel MC68HC901um / ad edge register enable register 17 interrupt pending s q r mask register s-bit interrupt in-service s pass vector interrupt request
interrupt structure 4-10 MC68HC901 user?s manual motorola 4.3.4 interrupt in-service registers (isra, isrb) these registers indicate whether interrupt processing is in progress for a certain channel. a bit is set whenever an interrupt vector number is passed for a interrupt channel during an iack cycle and the s bit of the vector register is a one. the bit is cleared whenever interrupt service is complete for an associated interrupt channel, the s bit of the vector register is cleared, or the processor writes a zero to the bit. gpip7-gpip6 ? general purpose interrupt servicing 1 = in-service. 0 = no service in progress. timer a ? timer a interrupt servicing 1 = in-service. 0 = no service in progress. receiver buffer full ? receiver buffer full interrupt servicing 1 = in-service. 0 = no service in progress. receiver error ? receiver buffer full interrupt servicing 1 = in-service. 0 = no service in progress. transmitter buffer empty ? transmitter buffer interrupt servicing 1 = in-service. 0 = no service in progress. transmitter error ? transmitter error interrupt servicing 1 = in-service. 0 = no service in progress. timer b ? timer b interrupt servicing 1 = in-service. 0 = no service in progress. isra register bit 7 6 5 4 3 2 1 0 field gpip7 gpip6 timer a rcv buffer full rcv error xmit buffer empty xmit error timer b reset 0 0 0 0 0 0 0 0 addr $0f
interrupt structure 4-11 MC68HC901 user?s manual motorola gpip5-gpip4 ? general purpose interrupt servicing 1 = in-service. 0 = no service in progress. timer c ? timer c interrupt servicing 1 = in-service. 0 = no service in progress. timer d ? timer d interrupt servicing 1 = in-service. 0 = no service in progress. gpip3-gpip0 ? general purpose interrupt servicing 1 = in-service. 0 = no service in progress. 4.4 nesting mfp interrupts in an m68000 vectored interrupt system, the mfp is assigned to one of seven possible interrupt levels. when an interrupt is received from the mfp, an interrupt acknowledge for that level is initiated. once an interrupt is recognized at a particular level, interrupts at the same level or below are masked by the processor. as long as the processor's interrupt mask is unchanged, the m68000 interrupt structure will prohibit nesting the interrupts at the same interrupt level. however, additional interrupt requests from the mfp can be recognized before a previous channel's interrupt service routine is finished by lowering the processor's interrupt mask to the next lower interrupt level within the interrupt handler. when nesting mfp interrupts, it may be desirable to permit interrupts on any mfp channel regardless of its priority, to pre-empt or delay interrupt processing of an earlier channel's interrupt service request. or, it may be desirable to only allow subsequent higher priority channel interrupt requests to supercede previously recognized lower priority interrupt requests. the mfp interrupt structure provides the flexibility by offering two end-of-interrupt options for vectored interrupt schemes. the end-of-interrupt modes are not active in a polled interrupt scheme. 4.4.1 selecting the end-of-interrupt mode in a vectored interrupt scheme, the mfp may be programmed to operate in either the automatic end-of-interrupt mode or the software end-of-interrupt mode. the mode is selected by writing the s bit of the vector register. when the s bit is programmed to a one, isrb register bit 7 6 5 4 3 2 1 0 field gpip5 gpip4 timer c timer d gpip3 gpip2 gpip1 gpip0 reset 0 0 0 0 0 0 0 0 addr $11
interrupt structure 4-12 MC68HC901 user?s manual motorola the mfp is placed in the software end-of-interrupt mode, and when the s bit is a zero, all channels operate in the automatic end-of-interrupt mode. 4.4.2 automatic end-of-interrupt mode when an interrupt vector is passed to the processor during an interrupt acknowledge cycle, the corresponding channel's interrupt pending bit is cleared. in the automatic end-of- interrupt mode, no further history of the interrupt remains in the mfp. the in-service bits of the interrupt in-service registers (isra and isrb) are forced low. subsequent interrupts, which are received on any mfp channel will generate an interrupt request to the processor even if the current interrupt's service routine has not been completed. 4.4.3 software end-of-interrupt mode in the software end-of-interrupt mode, the channel's associated interrupt pending bit is cleared. in addition, the channel's in-service bit of in-service register a or b is set when its vector number is passed to the processor during the interrupt acknowledge cycle. a higher priority channel may subsequently request interrupt service and be acknowledged, but as long as the channel's in-service bit is set, no lower priority channel may request interrupt service nor pass its vector during an interrupt acknowledge sequence. while only higher priority channels may request interrupt service, any channel can receive an interrupt and set its interrupt pending bit. even the channel with its in-service bit is set can receive a second interrupt. however, no interrupt service request is made until its in-service bit is cleared. the in-service bit for a particular channel can be cleared by writing a zero to its corresponding bit in isra or isrb and ones to all other bit positions. since bits in the in-service registers can only be cleared in software and not set, writing ones to the registers does not alter their contents. isra and isrb may be read at any time.
motorola MC68HC901 user?s manual 5-1 section 5 general purpose input/output port the general purpose input/output (i/o) port (gpip) provides eight i/o lines (i0 through i7) that may be operated as either inputs or outputs under software control. in addition, these lines may optionally generate an interrupt on either a positive transition or a negative transition of the input signal. the flexibility of the gpip allows it to be configured as an 8-bit i/o port or for bit i/o. since interrupts are enabled on a bit-by-bit basis, a subset of the gpip could be programmed as handshake lines or the port could be connected to as many as eight external interrupt sources, which would be prioritized by the mfp interrupt controller for the interrupt service. 5.1 gpip control registers the gpip is programmed via three control registers. these registers control the data direction, provide user access to the port, and specify the active edge for each bit of the gpip which will produce an interrupt. these registers are described in detail in the following paragraphs. 5.1.1 general purpose i/o data register (gpdr) the general purpose i/o data register is used to input data from or output data to the port. when data is written to the gpdr, those pins which are defined as inputs will remain in the high-impedance state. pins which are defined as outputs will assume the state (high or low) of their corresponding bit in the data register. when the gpdr is read, data will be passed directly from the bits of the data register for pins which are defined as outputs. data from pins defined as inputs will come from the input buffers. gpip7-gpip0 e general purpose i/o port 0 = cleared. 1 = set. 5.1.2 active edge register (aer) the active edge register (aer) allows each of the gpip lines to produce an interrupt on either a one-to-zero or a zero-to-one transition. writing a zero to the appropriate edge bit of gpdr register bit 7 6 5 4 3 2 1 0 field gpip7 gpip6 gpip5 gpip4 gpip3 gpip2 gpip1 gpip0 reset 0 0 0 0 0 0 0 0 addr $01
general purpose input/output port 5-2 MC68HC901 user?s manual motorola the active edge register will cause the associated input to generate an interrupt on the one- to-zero transition. writing a one to the edge bit will produce an interrupt on the zero-to-one transition of the corresponding line. when the processor sets a bit, interrupts will be generated on the rising edge of the associated input signal. when the processor clears a bit, interrupts will be generated on the falling edge of the associated input signal. gpip7-gpip0 e general purpose i/o port 0 = interrupts will be generated on the falling edge of the associated input signal. 1 = interrupts will be generated on the rising edge of the associated input signal. note the inputs to the exclusive-or of the transition detector are the edge bit and the input buffer. as a result, writing the aer may cause an interrupt-producing transition, depending upon the state of the input. so, the aer should be configured before enabling interrupts via the interrupt enable registers (iera and ierb). also, changing the edge bit while interrupts are enabled may cause an interrupt on the corresponding channel. 5.1.3 data direction register (ddr) the data direction register (ddr) allows the programmer to define i0 through i7 as inputs or outputs by writing the corresponding bit. when a bit of the data direction register is written as a zero, the corresponding interrupt i/o pin will be a high-impedance input. writing a one to any bit of the data direction register will cause the corresponding pin to be configured as a push-pull output. gpip7-gpip0 e general purpose i/o port 0 = associated i/o line is defined to be an input. 1 = associated i/o line is defined to be an output. aer register bit 7 6 5 4 3 2 1 0 field gpip7 gpip6 gpip5 gpip4 gpip3 gpip2 gpip1 gpip0 reset 0 0 0 0 0 0 0 0 addr $03 ddr register bit 7 6 5 4 3 2 1 0 field gpip7 gpip6 gpip5 gpip4 gpip3 gpip2 gpip1 gpip0 reset 0 0 0 0 0 0 0 0 addr $05
motorola MC68HC901 user? manual 6-1 section 6 timers the mfp contains four 8-bit timers which provide many functions typically required in microprocessor systems. the timers can supply the baud rate clocks for the on-chip serial i/o channel, generate periodic interrupts, measure elapsed time, and count signal transitions. in addition, two timers have waveform generation capability. all timers are prescaler/counter timers with a common independent clock input (xtal1 and xtal2). each timer's output signal toggles when the timer's main counter times out. additionally, timers a and b have auxiliary control signals (tai, tbi) which are used in two of the operation modes. an interrupt channel is assigned to each timer, and when the auxiliary control signals are used in the pulse width measurement mode, a separate interrupt channel will respond to transitions on these inputs. 6.1 operation modes timers a and b are full function timers which, in addition to the delay mode, operate in the pulse width measurements mode and the event count mode. timers c and d are delay timers only. a brief discussion of each of the timer modes follows. 6.1.1 delay mode operation all timers may operate in the delay mode. in this mode, the prescaler is always active. the prescaler specifies the number of timer clock cycles which must elapse before a count pulse is applied to the main counter. a count pulse causes the main counter to decrement by one. when the timer has decremented down to 01 (hexadecimal), the next count pulse will cause the main counter to be reloaded from the timer data register and a time out pulse will be produced. this time out pulse is coupled to the timer's interrupt channel and, if the channel is enabled, an interrupt will occur. the time out pulse also causes the timer output pin to toggle. the output will remain in this new state until the next time out pulse occurs. for example, if delay mode with a divide-by-10 prescaler is selected and the timer data register is loaded with 100 (decimal), the main counter will decrement once every 10 timer clock cycles. after 1000 timer clocks, a time out pulse will be produced. this time out pulse will generate an interrupt if the channel is enabled (iera, ierb), and in addition, the timer's output line will toggle. the output line will complete one full period every 2000 cycles of the timer clock. if the prescaler value is changed while the timer is enabled, the first time out pulse will occur at an indeterminate time no less than one or more than 200 timer clock cycles. subsequent time out pulses will then occur at the correct interval.
timers 6-2 MC68HC901 user? manual motorola if the main counter is loaded with 01 (hexadecimal), a time out pulse will occur every time the prescaler presents a count pulse to the main counter. if the main counter is loaded with 00, a time out pulse will occur every 256 count pulses. 6.1.2 pulse width measurement operation besides the delay mode, timers a and b may be programmed to operate in the pulse width measurement mode. in this mode, an auxiliary control input is required; timers a and b auxiliary input lines are tai and tbi. also, in the pulse width measurement mode, interrupt channels normally associated with i4 and i3 will instead respond to transitions on tai and tbi, respectively. general purpose lines i3 and i4 may still be used for i/o, but may not be used as interrupt generating inputs. a conceptual circuit of the selection of the interrupt source is shown in figure 6-1. figure 6-1. conceptual circuit of interrupt source selection the pulse width measurement mode functions similarly to the delay mode, with the auxiliary control signal acting as an enable to the timer. when the control signal is active, the prescaler and main counter are allowed to operate. when the control signal is negated, the timer is stopped. so, the width of the active pulse on tai or tbi is measured by the number of timer counts which occur while the timer is allowed to operate. the active state of the auxiliary input line is defined by the associated interrupt channel's edge bit in the active edge register (aer). gpip4 of the aer is the edge bit associated with tai, and gpip3 is associated with tbi. when the edge bit is a one, the auxiliary input will be active high, enabling the timer while the input signal is at a high level. if the edge bit is zero, the auxiliary input will be active low and the timer will operate while the input signal is at a low level. figure - conceptual circuit of interrupt source selection MC68HC901um / ad tai timer a pulse- width mode 14 interrupt channel interrupt channel 13 tbi (0110) (0011) timer b pulse- width mode
timers motorola MC68HC901 user? manual 6-3 the state of the active edge bit also specifies whether a zero-to-one transition or a one-to- zero transition of the auxiliary input pin will produce an interrupt when the interrupt channel is enabled. in normal operation, programming the active edge bit to a one will produce an interrupt on the zero-to-one transition of the associated input signal. alternately, programming the edge bit to a zero will produce an interrupt on the one-to-zero transition of the input signal. however, in the pulse width measurement mode, the interrupt generated by a transition on tai or tbi will occur on the opposite transition as that normally defined by the edge bit. for example, in the pulse width measurement mode, if the edge bit is a one, the timer will be allowed to run while the auxiliary input is high. when the input transitions from high to low, the timer will stop and, if the interrupt channel is enabled, an interrupt will occur. by having the interrupt occur on the one-to-zero transition instead of the zero-to-one transition, the processor will be interrupted when the pulse being measured has been terminated and the width of the pulse from the timer is available. after reading the contents of the timer, the processor must re-initialize the main counter by writing to the timer data register to allow consecutive pulses to be measured. if the data register is written after the auxiliary input signal becomes active, the timer will count from the previous contents of the timer data register until it counts through 01 (hexadecimal). at that time, the main counter is loaded with the new value from the timer data register, a time out pulse is generated which will toggle the timer output, and an interrupt may be optionally generated on the timer interrupt channel. note that the pulse width measured includes counts from before the main counter was reloaded. if the timer data register is written while the pulse is transitioning to the active state, an indeterminate value may be written into the main counter. once the timer is reprogrammed for another mode, interrupts will again occur as normally defined by the edge bit. note that an interrupt may be generated as the result of placing the timer into the pulse width measurement mode or by reprogramming the timer for another mode. also, an interrupt may be generated by changing the state of the edge bit while in the pulse width measurement mode. 6.1.3 event count mode operation in addition to the delay mode and the pulse width measurement mode, timers a and b may be programmed to operate in the event count mode. like the pulse width measurement mode, the event count mode requires an auxiliary input signal, tai or tbi. general purpose lines i3 and i4 can be used for i/o or as interrupt producing inputs. in the event count mode, the prescaler is disabled allowing each active transition on tai and tbi to produce a count pulse. the count pulse causes the main counter to decrement by one. when the timer counts through 01 (hexadecimal), a time out pulse is generated which will cause the output signal to toggle and may optionally produce an interrupt via the associated timer interrupt channel. the timer's main counter is also reloaded from the timer data register. to count transitions reliably, the input signal may only transition once every four timer clock periods. for this reason, the input signal must have a maximum frequency of one-fourth that of the timer clock.
timers 6-4 MC68HC901 user? manual motorola the active edge of the auxiliary input signal is defined by the associated channel's edge bit. gpip4 of the aer specifies the active edge for tai, and gpip3 defines the active edge for tbi. when the edge bit is programmed to a one, a count pulse will be generated on the zero- to-one transition of the auxiliary input signal. when the edge bit is programmed to a zero, a count pulse will be generated on the one-to-zero transition. also, note that changing the state of the edge bit while the timer is in the event count mode may produce a count pulse. 6.2 timer registers the four timers are programmed via three control registers and four data registers. the following paragraphs describe the different registers. 6.2.1 timer data registers (txdr) the four timer data registers (tdrs) are designated as timer a data register (tadr), timer b data register (tbdr), timer c data register (tcdr), and timer d data register (tddr). each timer's main counter is an 8-bit binary down counter. the timer data registers contain the value of their respective main counter. this value was captured on the last low-to-high transition of the data strobe pin. the main counter is initialized by writing to the tdr. if the timer is stopped, data is loaded simultaneously into both the tdr and main counter. if the tdr is written to while the timer is enabled, the value is not loaded into the timer until the timer counts through 01 (hexadecimal). if a write is performed while the timer is counting through 01, then an indeterminate value will be loaded into the timer's main counter. d7-d0 ?data 0 = cleared. 1 = set. 6.2.2 timer control registers (txcr) timer a control register (tacr) and timer b control register (tbcr) are associated with timers a and b, respectively. timers c and d are programmed using one control register the timer c and d control register (tcdcr). the bits in the control register select the operation mode, prescaler value, and disable the timers. both control registers have bits which allow the programmer to reset output lines ta0 and tb0. txdr register bit 7 6 5 4 3 2 1 0 field d7 d6 d5 d4 d3 d2 d1 d0 reset 0 0 0 0 0 0 0 0 addr $1f, $21, $23, $25
timers 6-5 MC68HC901 user? manual motorola bits 7-5 ?*unused unused bits read as zero. reset tao/tbo ?reset timer a and b output tao and tbo may be forced low at any time by writing a one to the reset location in tacr and tbcr. output is held low during the write operation, and at the end of the bus cycle the output is allowed to toggle in response to a time-out pulse. when resetting tao and tbo, the other bits in the tcr must be written with their previous value to avoid altering the operating mode. ac3-ac0/bc3-bc0 ?select timer a and b operation mode when the timer is stopped, counting is inhibited. the contents of the timer? main counter are not affected, although any residual count in the prescaler is lost. tacr register bit 7 6 5 4 3 2 1 0 field * * * reset tao ac3 ac2 ac1 ac0 reset 0 0 0 0 0 0 0 0 addr $19 tbcr register bit 7 6 5 4 3 2 1 0 field * * * reset tbo bc3 bc2 bc1 bc0 reset 0 0 0 0 0 0 0 0 addr $1b ac3 bc3 ac2 bc2 ac1 bc1 ac0 bc0 operation mode 0 0 0 0 timer stopped 0 0 0 1 delay mode, ? 4 prescaler 0 0 1 0 delay mode, ? 10 prescaler 0 0 1 1 delay mode, ? 16 prescaler 0 1 0 0 delay mode, ? 50 prescaler 0 1 0 1 delay mode, ? 64 prescaler 0 1 1 0 delay mode, ? 100 prescaler 0 1 1 1 delay mode, ? 200 prescaler 1 0 0 0 event count mode
timers 6-6 MC68HC901 user? manual motorola bit 7, bit 3 ?*unused unused bits read as zero. cc2-cc0/dc2-dc0 ?select timer c and d operation mode when the timer is stopped, counting is inhibited. the contents of the timer? main counter are not affected, although any residual count in the prescaler is lost. 1 0 0 1 pulse width mode, ? 4 prescaler 1 0 1 0 pulse width mode, ? 10 prescaler 1 0 1 1 pulse width mode, ? 16 prescaler 1 1 0 0 pulse width mode, ? 50 prescaler 1 1 0 1 pulse width mode, ? 64 prescaler 1 1 1 0 pulse width mode, ? 100 prescaler 1 1 1 1 pulse width mode, ? 200 prescaler tcdcr register bit 7 6 5 4 3 2 1 0 field * cc2 cc1 cc0 * dc2 dc1 dc0 reset 0 0 0 0 0 0 0 0 addr $1d cc2 dc2 cc1 dc1 cc0 dc0 operation mode 0 0 0 timer stopped 0 0 1 delay mode, ? 4 prescaler 0 1 0 delay mode, ? 10 prescaler 0 1 1 delay mode, ? 16 prescaler 1 0 0 delay mode, ? 50 prescaler 1 0 1 delay mode, ? 64 prescaler 1 1 0 delay mode, ? 100 prescaler 1 1 1 delay mode, ? 200 prescaler ac3 bc3 ac2 bc2 ac1 bc1 ac0 bc0 operation mode
motorola MC68HC901 user?s manual 7-1 section 7 universal synchronous/asynchronous receiver-transmitter the universal synchronous asynchronous receiver-transmitter (usart) is a single, full- duplex serial channel with a double-buffered receiver and transmitter. there are separate receive and transmit clocks and, also, separate receive and transmit status and data bytes. the receive and transmit sections are also assigned separate interrupt channels. each section has two interrupt channels: one for normal conditions another for error conditions all interrupt channels are edge-triggered. generally, it is the output of a flag bit or bits which is coupled to the interrupt channel. thus, if an interrupt-producing event occurs while the associated interrupt channel is disabled, no interrupt would be produced, even if the channel was subsequently enabled because a transition did not occur while the channel was enabled. that particular event would have to occur again, generating another edge, before an interrupt would be generated. the interrupt channels may be disabled and instead, a dma device can be used to transfer the data via the control signals receiver ready ( rr ) and transmitter ready (tr ). refer to section 7.4 dma operation for more information. 7.1 character protocols the mfp usart supports asynchronous and, with the help of a polynomial generator checker, byte synchronous character formats. these formats are selected independently of the divide-by-one and divide-by-16 clock modes. it is possible to clock data synchronously into the mfp but still use start and stop bits. after a start bit is detected, data will be shifted in and a stop bit will be checked to determine proper framing. in this mode, all normal asynchronous format features apply. when the divide-by-one clock mode is selected, synchronization must be accomplished externally. the receiver will sample serial data on the rising edge of the receiver clock. in the divide-by-16 clock mode, the data is sampled at mid-bit time to increase transient noise rejection. also, when the divide-by-16 clock mode is selected, the usart re-synchronization logic is enabled. this logic increases the channels clock skew tolerance. refer to section 7.1.1 asynchronous format for more information on the re-synchronization logic.
universal synchronous/asynchronous receiver-transmitter 7-2 MC68HC901 user?s manual motorola 7.1.1 asynchronous format variable character length and start/stop bit configurations are available under software control for asynchronous operation. the user can choose a character length from five to eight bits and a stop bit length of one, one and one-half, or two bits. the user can also select odd, even, or no parity. in the asynchronous format, start bit detection is always enabled. new data is not shifted into the receive shift register until a zero bit is received. when the divide-by-16 clock mode is selected, the false start bit logic is also active. any transition must be stable for three positive receive clock edges to be considered valid. for a start bit to be good, a valid zero- to-one transition must not occur for eight positive receiver clock transitions after the initial one-to-zero transition. after a valid start bit has been detected, the data is checked continuously for valid transitions. when a valid transition is detected, an internal counter is forced to state zero, and no further transition checking is initiated until state four. at state eight, the previous state of the transition checking logic is clocked into the receiver. as a result of this re-synchronization logic, it is possible to run with asynchronous clocks without start and stop bits if there are sufficient valid transitions in the data streams. 7.1.2 synchronous format when the synchronous character format is selected, the 8-bit synchronous character loaded into the synchronous character register (scr) is compared to received serial data until a match is found. once synchronization is established, incoming data is clocked into the receiver. the synchronous word will be continuously transmitted during an underrun condition. all synchronous characters can be optionally stripped from the receive buffer (i.e., taken out of the data stream and thrown away) by clearing the appropriate bit in the receive status register (rsr). d7-d0 ? data 0 = cleared. 1 = set. the synchronous character should be written after the character length is selected, since unused bits in the synchronous character register are zeroed out. when parity is enabled, synchronous word length is the character length plus one. the mfp will compute and append the parity bit for the synchronous character. scr register bit 7 6 5 4 3 2 1 0 field d7 d6 d5 d4 d3 d2 d1 d0 reset 0 0 0 0 0 0 0 0 addr $27
universal synchronous/asynchronous receiver-transmitter motorola MC68HC901 user?s manual 7-3 7.1.3 usart control register (ucr) this register selects the clock mode and the character format for the receive and transmit sections. clk ? clock mode 1 = data clocked into and out of receiver and transmitter at one sixteenth the frequency of their respective clocks. 0 = data clocked into and out of receiver and transmitter at the frequency of their respective clocks. cl1-cl0 ? character length these bits specify the length of the character exclusive of start bits and parity. st1-st0 ? start/stop bit and format control these bits select the number of start and stop bits and specify the character format. ucr register bit 7 6 5 4 3 2 1 0 field clk cl1 cl0 st1 st0 pe e / o 0 reset 0 0 0 0 0 0 0 u addr $29 cl1 cl0 character length 0 0 8 bits 0 1 7 bits 1 0 6 bits 1 1 5 bits st1 st0 start bits stop bits format 0 0 0 0 synchronous 0 1 1 1 asynchronous 1 0 1 1-1/2 asynchronous (see note) 1 1 1 2 asynchronous note: used with divide-by-16 mode only.
universal synchronous/asynchronous receiver-transmitter 7-4 MC68HC901 user?s manual motorola pe ? parity enable 1 = parity checked by receiver and parity calculated and inserted during data transmission. 0 = no parity check and no parity bit computed for transmission. e/o ? even/odd parity 1 = even parity is selected. 0 = odd parity is selected. bit 0 ? reserved by motorola this bit is reserved and returns a zero when read. 7.1.4 usart data register (udr) this register is used to either provide the current data word in the receiver buffer or to provide data to the transmitter buffer. d7-d0 ? data 0 = cleared. 1 = set. 7.2 receiver as data is received on the serial input line (si), it is clocked into an internal 8-bit shift register until the specified number of data bits have been assembled. the character will then be transferred to the receive buffer, assuming that the last word in the receive buffer has been read. this transfer will set the buffer full bit in the receiver status register (rsr) and produce a buffer full interrupt to the processor, assuming this interrupt has been enabled. reading the receive buffer satisfies the buffer full condition and allows a new data word to be transferred to the receive buffer when it is assembled. the receive buffer is accessed by reading the usart data register (udr). the udr is simply an 8-bit data register used when transferring data between the mfp and the cpu. each time a word is transferred to the receive buffer, its status information is latched into the receiver status register (rsr). the rsr is not updated again until the data word in the receive buffer has been read. when a buffer full condition exists, the rsr should always be read before the receive buffer (udr) to maintain the correct correspondence between data and flags. otherwise, it is possible that after reading the udr and prior to reading the rsr, a new word could be received and transferred to the receive buffer. its associated flags would be latched into the rsr, writing over the flags for the previous data word. thus, when udr register bit 7 6 5 4 3 2 1 0 field d7 d6 d5 d4 d3 d2 d1 d0 reset 0 0 0 0 0 0 0 0 addr $2f
universal synchronous/asynchronous receiver-transmitter 7-5 MC68HC901 user?s manual motorola the rsr was read to access the status information for the first data word, the flags for the new word would be retrieved. 7.2.1 receiver interrupt channels the usart receiver section is assigned two interrupt channels. one indicates the buffer full condition while the other channel indicates an error condition. error conditions include overrun, parity error, frame error, synchronous found, and break. these interrupting conditions correspond to the oe, pe, fe, and f/s or b bits of the receiver status register. these flags will function as described in section 7.2.2 receiver status register whether the receiver interrupt channels are enabled or disabled. while only one interrupt is generated per character received, two dedicated interrupt channels allow separate vector numbers to be assigned for normal and abnormal receiver conditions. when a received word has an error associated with it and the error interrupt channel is enabled, an interrupt will be generated on the error channel only. however, if the error channel is disabled, an interrupt for an error condition will be generated on the buffer full interrupt channel along with interrupts produced by the buffer full condition. the receiver status register must always be read to determine which error condition produced the interrupt. 7.2.2 receiver status register (rsr) the rsr contains the receiver buffer full flag, the synchronous strip enable, the various status information associated with the data word in the receive buffer. the rsr is latched each time a data word is transferred to the receive buffer. rsr flags cannot change again until the new data word has been read. however, the m/cip bit is allowed to change. bf? buffer full receiver word is transferred to the receive buffer. receiver buffer is read by accessing the usart data register. 1 = receiver word transferred to buffer. 0 = read by rsr. oe? overrun error overrun error occurs when a received word is to be transferred to the receive buffer, but the buffer is full. neither the receiver buffer nor the rsr is overwritten. the oe bit is set after the receive buffer full condition is satisfied by reading the udr. this error condition will generate an interrupt to the processor. the oe bit is cleared by reading the rsr. new data words will not be assembled until the rsr is read. rsr register bit 7 6 5 4 3 2 1 0 field bf oe pe fe fs or b m or cip ss re reset 0 0 0 0 0 0 0 0 addr $2b
universal synchronous/asynchronous receiver-transmitter 7-6 MC68HC901 user?s manual motorola 1 = receiver buffer full and incoming word received. 0 = read by rsr. pe? parity error 1 = parity error detected on character transfer to receiver buffer. 0 = no parity error detected on character transfer to receiver buffer. fe ? frame error a frame error exists when a non-zero data character is not followed by a stop bit in the asynchronous character format. 1 = frame error detected on character transfer to receiver buffer. 0 = no frame error detected on character transfer to receiver buffer. f/s or b ? found/search or break detect the f/s bit is used in the synchronous character format. when set to zero, the usart receiver is placed in the search mode. f/s is cleared when the incoming character does not match the synchronous character. 1 = match found. character length counter enabled. 0 = incoming data compared to scr. character length counter disabled. the b bit is used in the asynchronous character format. this flag indicates a break condition which continues until a non-zero data bit is received. 1 = character transferred to the receive buffer is a break condition. 0 = non-zero data bit received and break condition was acknowledged by reading the rsr at least once. m or cip ? match/character in progress the m bit is used in the synchronous character format and indicates a synchronous character has been received. 1 = character transferred to the receive buffer matches the synchronous character. 0 = character transferred to the receive buffer does not match the synchronous character. the cip bit is used in the asynchronous character format and indicates that a character is being assembled. 1 = start bit is detected. 0 = final stop bit has been received. ss ? synchronous strip enable 1 = characters that match the synchronous character will not be loaded into the receiver buffer and no buffer full condition will be produced. 0 = characters that match the synchronous character will be transferred to the receive buffer and a buffer full condition will be produced.
universal synchronous/asynchronous receiver-transmitter 7-7 MC68HC901 user?s manual motorola re ? receiver enable this bit should not be set until the receiver clock is active. when the transmitter is disabled in auto-turnaround mode this bit is set. 1 = receiver operation is enabled. 0 = receiver is disabled. 7.2.3 special receive conditions certain receive conditions relating to the overrun error flag and the break detect flag require further explanation. consider the following examples: 1. a break is received while the receive buffer is full. this does not produce an overrun condition. only the b flag will be set after the receiver buffer is read. 2. a new word is received, and the receive buffer is full. a break is received before the receive buffer is read. both the b and oe flags will be set when the buffer full condition is satisfied. 7.3 transmitter the transmit buffer is loaded by writing to the usart data register (udr). the data character will be transferred to an internal 8-bit shift register when the last character in the shift register has been transmitted. this transfer will produce a buffer empty condition. if the transmitter completes the transmission of the character in the shift register before a new character is written to the transmit buffer, an underrun error will occur. in the asynchronous character format, the transmitter will send a mark until the transmit buffer is written. in the synchronous character format, the transmitter will continuously send the synchronous character until the transmit buffer is written. the transmit buffer can be loaded prior to enabling the transmitter. after the transmitter is enabled, there is a delay before the first bit is output. the serial output line (so) should be programmed to be high, low, or high impedance (by setting the appropriate bits in the transmitter status register (tsr)) before the transmitter is enabled forcing the output line to the desired state until the first bit of the first character is shifted out. the state of the h and l bits in the tsr determine the state of the first transmitted bit after the transmitter is enabled. if the high impedance mode is selected prior to the transmitter being enabled, the first bit transmitted is indeterminate. note that the so line will always be driven high for one bit time prior to the character in the transmit shift register being transmitted when the transmitter is first enabled. when the transmitter is disabled, any character currently being transmitted will continue to completion. however, any character in the transmit buffer will not be transmitted and will remain in the buffer. thus, no buffer empty condition will occur. if the buffer is empty when the transmitter is disabled, the buffer empty condition will remain, but no underrun condition will be generated when the character in transmission is completed. if no character is being transmitted when the transmitter is disabled, the transmitter will stop at the next rising edge of the internal shift clock.
universal synchronous/asynchronous receiver-transmitter 7-8 MC68HC901 user?s manual motorola in the asynchronous character format, the transmitter can be programmed to send a break. the break will be transmitted once the word currently in the shift register has been sent. if the shift register is empty, the break command will be effective immediately. a transmit error interrupt will be generated at every normal character boundary to aid in timing the break transmission. the contents of the tsr are not affected, however. the break will continue until the break bit is cleared. the underrun error (ue) must be cleared from the tsr. also, the interrupt pending register must be cleared of pending transmitter errors at the beginning of the break transmission, or no interrupts will be generated at the character boundary time. the break (b) bit cannot be set until the transmitter has been enabled and has had sufficient time (one transmitter clock cycle) to perform internal reset and initialization functions. any character in the transmit buffer at the start of a break will be transmitted when the break is terminated, assuming the transmitter is still enabled. if the transmit buffer is empty at the start of a break, it may be written at any time during the break. if the buffer is still empty at the end of the break, an underrun condition will exist. disabling the transmitter during a break condition causes the transmitter to cease transmission of the break character at the end of the current character. no end-of-break stop bit will be transmitted. even if the transmit buffer is empty, no buffer empty condition will occur nor will an underrun condition occur. also, any word in the transmit buffer will remain. 7.3.1 transmitter interrupt channels the usart transmit section is assigned two interrupt channels. the normal channel indicates a buffer empty condition, and the error channel indicates an underrun or end condition. these interrupting conditions correspond to the be, ue, and end flags in the tsr. the flag bits will function as described in section 7.3.2 transmitter status register whether their associated interrupt channel is enabled or disabled. 7.3.2 transmitter status register (tsr) the tsr contains various transmitter error flags and transmitter control bits for selecting auto-turnaround and loopback mode. be ? buffer empty 1 = character in the transmit buffer transferred to tsr. 0 = transmit buffer reloaded by writing to the usr. u ? underrun error one full transmitter clock cycle is required after ue bit is set before it can be cleared. this bit does not require clearing before writing to the udr. tsr register bit 7 6 5 4 3 2 1 0 field be ue at end b h l te reset 0 0 0 0 0 0 0 0 addr $2d
universal synchronous/asynchronous receiver-transmitter 7-9 MC68HC901 user?s manual motorola 1 = character in the tsr was transmitted before a new word was loaded into the transmit buffer. 0 = transmitter disabled or read performed on tsr. at ? auto-turnaround when set, the receiver will be enabled automatically after the transmitter has been disabled and the last character being transmitted is complete. end ? end of transmission if the transmitter is disabled while a character is being transmitted, this bit is set after transmission is complete. if no character was being transmitted, then this bit is set immediately. re-enabling the transmitter clears this bit. b ? break this bit only functions in the asynchronous format. when b is set, be cannot be set. a break consists of all zeros with not stop bit. this bit cannot be set until transmitter is enabled and internal reset and initialization is complete. 1 = break transmitted and transmission stops. 0 = break ceases and normal transmission resumes. h, l ? high and low these bits configure the transmitter output (so) when the transmitter is disabled. changing these bits after the transmitter is enabled will not alter the output state until end is cleared. te ? transmitter enable the serial output will be driven according to h and l bits until transmission begins. a one bit is transmitted before character transmission in the tsr begins. 1 = transmitter enabled. 0 = transmitter disabled. the ue bit is cleared and the end bit is set. 7.4 dma operation usart error conditions are valid only for each character boundary. when the usart performs block data transfers by using the dma handshake lines receiver ready (rr ) and transmitter ready (tr ), errors must be saved and checked at the end of a block. this is accomplished by enabling the error channel for the receiver or transmitter and by masking h l output state 0 0 high impedance o 1 low 1 0 high 1 1 loopback mode
universal synchronous/asynchronous receiver-transmitter 7-10 MC68HC901 user?s manual motorola interrupts for this channel. once the transfer is complete, interrupt pending register a is read. any pending receiver or transmitter error indicates an error in the data transfer. rr is asserted when the buffer full bit is set in the rsr unless a parity error or frame error is detected by the receiver. tr is asserted when the buffer empty bit is set in the tsr unless a break is currently being transmitted.
motorola MC68HC901 user? manual 8-1 section 8 electrical characteristics this section contains the electrical specifications and associated timing information for the MC68HC901 multi-function peripheral. refer to section 9 ordering information and mechanical data for specific part numbers corresponding to voltage, frequency, and temperature rating. 8.1 maximum ratings 8.2 thermal characteristics rating symbol value unit this device contains circuitry to protect the inputs against damage due to high static voltages or electric fields; however, it is advised that normal precautions be taken to avoid application of any voltage higher than maximum- rated voltages to this high- impedance circuit. reliability of operation is enhanced if unused inputs are tied to an appropriate logic voltage level (e.g., either v cc or gnd). supply voltage v cc ?0.3 to 7.0 v input voltage v in ?0.3 to 7.0 v operating temperature range t a 0 to 70 ?c storage temperature range t stg ?65 to 150 ?c power dissipation p d 0.21 w notes: 1. permanent damage can occur if maximum ratings are exceeded. exposure to voltages or currents in excess of recommended values affects device reliability. device modules may not operate normally while being exposed to electrical extremes. 2. although sections of the de vice contain circuitr y to protect against damage from high static v oltages or electr ical elds , tak e nor mal precautions to a v oid e xposure to v oltages higher than maxim um- rated voltages. characteristic symbol value symbol value rating thermal resistance plastic (dual-in-line) plcc q ja 40 60 q jc 20* 30 ?c / w *estimated
electrical characteristics 8-2 MC68HC901 user? manual motorola 8.3 power considerations the average chip-junction temperature, t j , in ? c can be obtained from: t j = t a + (p d ? q ja ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . (1) where: t a = ambient temperature, ? c q ja = package thermal resistance, junction-to-ambient, ? c/w p d = p int + p i/o p int = i cc x v cc , watts ? chip internal power p i/o = power dissipation on input and output pins, watts ? user determined for most applications p i/o < p int and can be neglected. an appropriate relationship between p d and t j (if p i/o is neglected) is: p d = k ? (t j + 273 ? c) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . (2) solving equations (1) and (2) for k gives: k = p d (t a + 273 ? c) + q ja p d 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . (3) where k is a constant pertaining to the particular part. k can be determined from equation (3) by measuring p d (at equilibrium) for a known t a . using this value of k, the values of p d and t j can be obtained by solving equations (1) and (2) iteratively for any value of t a . the total thermal resistance of a package ( q ja ) can be separated into two components, q jc and q ca , representing the barrier to heat flow from the semiconductor junction to the package (case) surface ( q jc ) and from the case to the outside ambient ( q ca ). these terms are related by the equation: q ja = q jc + q ca . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . (4) q jc is device related and cannot be influenced by the user. however, q ca is user dependent and can be minimized by such thermal management techniques as heat sinks, ambient air cooling and thermal convection. thus, good thermal management on the part of the user can significantly reduce q ca so that q ja approximately equals q jc . substitution of q jc for q ja in equation (1) will result in a lower semiconductor junction temperature.
electrical characteristics motorola MC68HC901 user? manual 8-3 8.4 dc electrical characteristics (t a = 0 ?c to 70 ?c; v cc = 5.0 vdc 5%; gnd = 0 vdc; unless otherwise noted) 8.5 capacitance (t a = 25 ?c; f = 1 mhz; unmeasured pins returned to ground) characteristic symbol min max unit input high voltage, except xtal1 v ih 2.0 v cc v input low voltage, except xtal1 v il ?0.3 0.8 v xtal1 input high voltage v ih 3.15 v cc v xtal1 input low voltage v il ?0.3 1.35 v output high voltage, except irq , dtack (i oh = ?120 m a) v oh 2.4 ? v output low voltage, except dtack (i ol = 2.0 ma) v ol ? 0.5 v power supply current i ll ? 40 ma input leakage current (v in = 0 to v cc ) i li ? 10 m a hi-z output leakage current in float (v out = 2.4 to v cc ) i loh ? 10 m a hi-z output leakage current in float (v out = 0.5 v) i lol ? e 10 m a dtack output source current (v out = 2.4 v) i oh ? e 400 m a dtack output sink current (v out = 0.5 v) i ol ? 5.3 ma characteristic symbol min max unit input capacitance c in 10 pf hi-z output capacitance c out 10 pf load capacitanceirq , dtack all other outputs c 100 130 pf
electrical characteristics 8-4 MC68HC901 user? manual motorola 8.6 clock timing (see figure 8-1) figure 8-1. clock input timing diagram figure 8-2. mfp external oscillator components num characteristic symbol min max unit frequency of operation f 1.0 4.0 mhz 1 cycle time t cyc 250 1000 ns 2, 3 clock pulse width t cl , t ch 110 485 ns 4, 5 rise and fall times t cr , t cf 15 ns 2.0 v 0.8 v 4 5 2 3 1 figure - clock input timing diagram MC68HC901um / ad figure - mfp external oscillator components MC68HC901um / ad MC68HC901 10 pf xtal1 xtal2 5 pf y1 crystal parameters: f (typical) = 2.4576 mhz parallel resonance fundamental mode at cut c l = 18 pf, c m = 0.02 pf, c r = 5 pf, l m = 96 mhz r s < -- 150 (f = 2.8 - 4.0 mhz) r s < -- 300 (f = 2.0 - 2.7 mhz)
electrical characteristics 8-5 MC68HC901 user? manual motorola 8.7 ac electrical characteristics (v cc = 5.0 vdc 5%; gnd = 0 vdc; t a = 0? c to 70? c; unless otherwise noted, see figures 8-3 through 8-12) num characteristic min max unit 1 4 cs , ds width high 50 ns 2 r/w , rs1-rs5 valid to falling cs setup time 0 ns 3 data valid prior to falling clk setup time (write cycle only) 0 ns 4 1 cs, iack valid to falling clk setup time 50 ns 5 clk low to dtack low 220 ns 6 cs or ds or iack high to dtack high 60 ns 7 cs or ds or iack high to dtack high impedance 100 ns 8 dtack low to data invalid hold time (write) 0 ns 9 cs or ds or iack high to data high impedance (read) 50 ns 10 cs or ds high to rs1-rs5, r/w invalid hold time 0 ns 11 5 data valid from cs low (read) 310 ns 12 data valid to dtack low setup time (read) 50 ns 13 dtack low to ds or cs or iack high hold time 0 ns 14 iei low to falling clk setup time 50 ns 15 ieo valid from clk low delay time 180 ns 16 data valid from clk low delay time 300 ns 17 ieo invalid from iack high delay time 150 ns 18 dtack low from clk high delay time 180 ns 19 ieo valid from iei low delay time 100 ns 20 data valid from iei low delay time 220 ns 21 clk cycle time 250 1000 ns 22 clk width low 110 ns 23 clk width high 110 ns 24 2,4 cs , iack inactive to rising clk setup time 100 ns 25 i/o minimum active pulse width 100 ns 26 3 iack width high 2 t cyc 27 i/o data valid from falling clk (write) 450 ns
electrical characteristics 8-6 MC68HC901 user? manual motorola 28 receiver ready (rr ) delay from rising rc 600 ns 29 transmitter ready (tr ) delay from rising tc 600 ns 30 txo (a or b) low from rising edge of cs or ds (reset time) 450 ns 31 3 timer output (txo) valid from falling t clk that causes timeout 2 t clk + 300 ns 32 timer clock (t clk ) low time 110 ns 33 timer clock (t clk ) high time 110 ns 34 timer clock (t clk ) cycle time 250 1000 ns 35 reset low time 2 m s 36 delay to falling irq from ix active transition ? 380 ns 37 transmitter interrupt delay from falling edge of tc ? 550 ns 38 receiver interrupt delay from rising edge of rc (buffer full) ? 800 ns 39 receiver interrupt delay from falling edge of rc (error) ? 800 ns 40 si setup time from rising edge of rc (divide by 1 only) 80 ? ns 41 si hold time from rising edge of rc (divide by 1 only) 350 ? ns 42 so data valid from falling edge of tc (divide by 1 only) ? 440 ns 43 tc low time 500 ? ns 44 tc high time 500 ? ns 45 tc cycle time 1.05 m s 46 rc low time 500 ? ns 47 rc high time 500 ? ns 48 rc cycle time 1.05 m s 49 3 cs , iack , ds width low ? 80 t cyc 50 so data valid from falling edge of tc (divide by 16 only) ? 490 ns notes: 1. if the setup time is not met, cs will not be recognized until the next falling clock. 2. if this setup time is met (for consecutive cycles), the minimum hold-off time of one clock cycle will be obtained. if not met, the hold-off time will be two clock cycles. 3. t cyc refers to the clock signal applied to the mfp clk input pin. t clk refers to the timer clock signal, regardless of whether that signal comes from the xt al1/xtal2 crystal cloc k inputs or the tai or tbi timer inputs. 4. cs is latched internally, therefore if specifications 1 and 24 are met, then cs may be negated before the falling clock and still initiate a bus cycle. 5. although cs and dtack are synchronized with the clock, the data out during a read cycle is asynchronous to the clock, relying only on cs for timing. num characteristic min max unit
electrical characteristics 8-7 MC68HC901 user? manual motorola 8.8 timer ac characteristics definitions: error = indicated time value ?actual time value t psc = t clk x prescale value internal timer mode: single interval error (free running) (see note 2 below) . . . . . . . . . . . . . . . . 100 ns cumulative internal error . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 0 error between two timer reads . . . . . . . . . . . . . . . . . . . . . . . . . . . . . (t psc e 4 t clk ) start timer to stop timer error . . . . . . . . 2 t clk + 100 ns to e (t psc + 6 t clk + 100 ns) start timer to read timer error . . . . . . . . . . . . . . . . . . . 0 to e (t psc + 6 t clk + 400 ns) start timer to interrupt request error (see note 3 below) . . . . . . . . . . . . . . . . . . . . . . . . . . . . e 2 t clk to e (4 t clk + 800 ns) pulse width measurement mode: measurement accuracy (see note 1 below) . . . . . . . . . . . . 2 t clk to e (t psc + 4 t clk ) minimum pulse width. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 t clk event counter mode: minimum active time of tai and tbi. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 t clk minimum inactive time of ai and tbi . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 t clk notes: 1. error may be cumulative if repetitively performed. 2. error with respect to tout or irq if note 3 is true. 3. assuming it is possible for the timer to make an interrupt request immediately.
electrical characteristics 8-8 MC68HC901 user? manual motorola figure 8-3. read cycle timing figure 8-4. write cycle timing figure - read cycle timing MC68HC901um / ad clk cs ds dtack r / w rs1 - rs5 d0 - d7 23 4 21 22 1 24 5 2 10 11 9 12 13 6 7 figure - write cycle timing MC68HC901um / ad clk cs ds dtack r / w rs1 - rs5 d0 - d7 1 24 10 13 6 7 5 8 2 2 4 3
electrical characteristics 8-9 MC68HC901 user? manual motorola figure 8-5. interrupt acknowledge cycle (iei low) clk ds dtack d0 - d7 iack 17 15 (see note) 16 9 iei ieo 14 note: ieo only goes low if no acknowledgeable interrupt is pending. if ieo goes low, dtack and the data bus remain in the high-impendance state. 26 4 6 13 18 7 figure - interrupt acknowledge cycle (iei low) timing MC68HC901um / ad
electrical characteristics 8-10 MC68HC901 user? manual motorola figure 8-6. interrupt acknowledge cycle (iei high) figure 8-7. interrupt timing figure 8-8. port timing MC68HC901um / ad figure - interrupt acknowledge cycle (iei high) timing notes: the data bus remain in the high-impedance state. low at b . 1. ieo only goes low if no acknowledgable interrupt is pending. if ieo goes low, dtack and 2. dtack will go low at a if specification number 14 is met. otherwise, dtack will go clk ds dtack d0 - d7 iack iei ieo 17 (note 1) 4 (note 2) a 19 20 9 18 b 18 6 7 figure - interrupt timing MC68HC901um / ad 36 i7 - i0 irq note: active edge is assumed to be the rising edge. 25 figure - port timing MC68HC901um / ad clk 27 i7 - i0
electrical characteristics 8-11 MC68HC901 user? manual motorola figure 8-9. reset timing figure 8-10. receiver timing figure 8-11. transmitter timing figure - reset timing MC68HC901um / ad 35 reset figure - receiver timing MC68HC901um / ad 47 46 48 28 40 rc si (divide-by-1 mode only) rr (error condition) irq 38 39 41 irq (buffer full condition) figure - transmitter timing MC68HC901um / ad 44 43 45 tc so (divide-by-16-mode) so (divide-by-1-mode) tr irq 29 42 50 37
electrical characteristics 8-12 MC68HC901 user? manual motorola figure 8-12. timer timing figure - timer timing MC68HC901um / ad 33 32 49 (see note) xtal1 / xtal2 internal timeout tao / tbo / tco / tdo note: specification # 30 applies to timer outputs tao and tbo only. cs / ds / iack 34 31 30
motorola MC68HC901 user? manual 9-1 section 9 mechanical data and ordering information this section contains the pin assignments, package dimensions, and ordering information for the MC68HC901 multi-function peripheral. 9.1 pin assignments figure 9-1. 48-pin dual-in-line package (plastic) package MC68HC901 48-pin dual-in-line (plastic) yes 52-lead quad yes figure - 48-pin dual-in-line package MC68HC901um / ad 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 24 23 22 21 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 41 42 43 44 45 46 47 48 rs1 rs2 rs3 rs4 rs5 tc so si rc v cc tao tbo tco tdo xtal1 xtal2 tai tbi i0 i1 i2 nc r / w reset d7 d6 d5 d4 d3 d2 d1 d0 gnd clk i7 i6 i5 i4 i3 tr rr irq ieo iei iack dtack ds cs
mechanical data and ordering information 9-2 MC68HC901 user? manual motorola figure 9-2. 52-lead quad package 9.2 package dimensions figure 9-3. case 767-02? suffix case package MC68HC901 48-pin dual-in-line (plastic) yes 52-lead quad yes figure - 52-lead quad plcc MC68HC901um / ad 1 8 52 20 21 33 34 46 7 47 d5 d4 d3 d2 d1 d0 gnd clk tr rr irq ieo iei tc so si rc v cc tao tbo tco tdo xtal1 xtal2 nc nc tai tbi i0 i1 i2 reset i7 i6 i5 i4 i3 nc nc rs1 rs2 rs3 rs4 rs5 r / w d7 d6 iack dtack ds cs nc min min max max inches millimeters dim 61.34 13.72 3.94 0.36 1.02 0.20 2.92 0 0.51 62.10 14.22 5.08 0.55 1.52 0.38 3.81 15 1.01 2.415 0.540 0.155 0.014 0.040 0.008 0.115 0 0.020 2.445 0.560 0.200 0.022 0.060 0.015 0.150 15 0.040 detail x tip taper g d 32 pl f plane seating m 48 pl j 48 pl k n 48 25 24 1 -b- -a- -t- a b c d f g h j k l m n 15.24 bsc 0.600 bsc 1.79 bsc 0.070 bsc 2.54 bsc 0.100 bsc notes: 1. dimensions and tolerancing per ansi y14.5m, 1982. 2. controlling dimension: inch. 3. dimension l to center of lead when formed parallel. 4. dimensions a and b do not include mold flash. maximum mold flash 0.25 (0.010). l 0.25 (0.010) t b m s 0.51 (0.020) t a m s detail x c date 01/31/90 case 767-02 issue b
mechanical data and ordering information motorola MC68HC901 user? manual 9-3 figure 9-4. case 778-02?n suffix y brk b 0.18 (0.007) m t n s - p s s l - m s 0.18 (0.007) m t n s - p s s l - m s u x g1 0.25 (0.010) m t n s - p s s l - m s view d-d n - - l - - m - - w 52 (note 1) 1 p - - v c z a 52 (note 1) g detail s r j e g1 0.18 (0.007) m t n s - p s s l - m s 0.18 (0.007) m t n s - p s s l - m s 0.25 (0.010) m t n s - p s s l - m s 0.10 (0.004) - t - seating plane notes: 1. due to space limitation, case 778-02 shall be represented by a general (smaller) case outline drawing rather than showing all 52 leads. 2. datums -l-, -m -, -n-, determined where top of lead shoulder exit plastic body at mold parting line. 3. dim g1, true position to be measured at datum -t- , seating plane. 4. dim r and u do not include mold protrusion. allowable mold protrusion is 0.25 (0. 010) per side. 5. dimensioning and tolerancing per ansi y14.5m, 1982. 6. controlling dimension: inch. dim millimeters inches a b c e f g h j k r u v w x y z g1 k1 19.94 19.94 4.20 2.29 0.33 0.66 0.51 0.64 19.05 19.05 1.07 1.07 1.07 - 2 10 2 10 18.04 1.02 20.19 0.785 0.795 20.19 0.785 0.795 4.57 0.165 0.180 2.79 0.090 0.110 0.48 0.013 0.019 1.27 bsc 0.050 bsc 0.81 0.026 0.032 - 0.020 - - 0.025 18.54 0.710 0.730 0.040 19.20 0.750 0.756 19.20 0.750 0.756 1.21 0.042 0.048 1.21 0.042 0.048 1.42 0.042 0.056 0.50 - 0.020 - - min max min max - note 1 h k1 k f detail s 0.18 (0.007) m t n s - p s s l - m s 0.18 (0.007) m t n s - p s s l - m s 0.18 (0.007) m t n s - p s s l - m s 0.18 (0.007) m t n s - p s s l - m s 7. the package top may be smaller than the package bottom by up to .012 (.300). dimensions r and u are determined at the outermost extremes of the plastic body exclusive of mold flash. tie bar burrs, gate burrs and interlead flash, but including any mismatch between the top and bottom of the plastic body. 8. dimension h does not include dambar protrusion or intrusion. the dambar protrusion(s) shall not cause the h dimension to be greater than .037 (.940). the dambar instrusion(s) shall not cause the h dimemsion to be smaller than .025 (.635).
mechanical data and ordering information 9-4 MC68HC901 user? manual motorola 9.3 ordering information package type maximum clock frequency temperature range order number plastic p suffix 4.0 mhz 0 ?c to 70 ?c MC68HC901p quad pack fn suffix 4.0 mhz 0 ?c to 70 ?c MC68HC901fn
motorola MC68HC901 user?s manual index-1 index numerics 48-pin dual-in-line package (plastic) ..................................... 9-1 52-lead quad package ..................... 9-2 a ac electrical characteristics ............... 8-5 active edge register (aer) ................ 5-1 aer register ........................................ 5-2 asynchronous bus control .................. 2-2 asynchronous format .......................... 7-2 automatic end-of-interrupt mode ....................................... 4-12 b bus operation ...................................... 3-1 c capacitance ......................................... 8-3 case package drawings case 767-02ep suffix .................... 9-2 case 778-02efn suffix .................. 9-3 character formats asynchronous ................................. 7-2 synchronous .................................. 7-2 character protocols ............................. 7-1 clock input timing diagram ................ 8-4 clock signal ......................................... 2-2 clock timing ........................................ 8-4 conceptual circuit of interrupt source selection ....................... 6-2 conceptual circuits of an interrupt channel ..................................... 4-9 d daisy-chained interrupt structure ....... 4-3 daisy-chaining mfps .......................... 4-3 data bus signals ................................. 2-2 data direction register (ddr) ............. 5-2 data transfer operations ..................... 3-1 dc electrical characteristics ................ 8-3 ddr register ........................................ 5-2 delay mode operation ......................... 6-1 diagram(s) clock input timing .......................... 8-4 iack cycle timing .......................... 3-3 interrupt acknowledge cycle timing (iei high) ................ 8-10 interrupt acknowledge cycle timing (iei low) ................... 8-9 interrupt timing ............................. 8-10 mfp block ...................................... 1-1 port timing ................................... 8-10 read cycle timing .................. 3-2, 8-8 receiver timing ............................ 8-11 reset timing ................................. 8-11 timer timing ................................. 8-12 transmitter timing ........................ 8-11 write cycle timing ................... 3-2, 8-8 direct memory access control signals ....................................... 2-5 dma operation .................................... 7-9 e electrical characteristics ...................... 8-1 event count mode operation ............... 6-3 g general purpose i/o data register (gpdr) ...................................... 5-1 general purpose i/o interrupt lines .......................................... 2-3 general purpose input/output port ............................................ 5-1 gpdr register ...................................... 5-1 gpip control registers ........................ 5-1 gpip port ............................................. 5-1
index index-2 MC68HC901 user?s manual motorola gpip registers active edge register (aer) ........... 5-2 data direction register (ddr) ....... 5-2 general purpose i/o data register (gpdr) ................. 5-1 i iack cycle timing diagram ................ 3-3 iera register ....................................... 4-4 ierb register ....................................... 4-5 imra register ....................................... 4-8 imrb register ....................................... 4-9 input and output signals ..................... 2-1 interrupt acknowledge cycle (iei high) ................................. 8-10 interrupt acknowledge cycle (iei low) ................................... 8-9 interrupt acknowledge operation ........ 3-2 interrupt channel prioritization ............ 4-1 interrupt control registers .................. 4-4 interrupt control signals ...................... 2-3 interrupt enable registers (iera, ierb) ............................. 4-4 interrupt in-service registers (isra, isrb) ........................... 4-10 interrupt mask registers (imra, imrb) ........................... 4-8 interrupt pending registers (ipra, iprb) ............................. 4-6 interrupt processing ............................ 4-1 interrupt registers interrupt enable register a (iera) .................................. 4-4 interrupt enable register b (ierb) ................................. 4-5 interrupt mask register a (imra) ................................. 4-8 interrupt mask register b (imrb) ................................ 4-9 interrupt pending register a (ipra) ................................. 4-6 interrupt pending register b (iprb) .................................. 4-7 interrupt service register a (isra) ................................ 4-10 interrupt service register b (isrb) ................................ 4-11 vector register (vr) ...................... 4-2 interrupt structure ................................ 4-1 interrupt timing .................................. 8-10 interrupt vector number ...................... 4-1 introduction .......................................... 1-1 ipra register ........................................ 4-6 iprb register ........................................ 4-7 isra register ...................................... 4-10 isrb register ...................................... 4-11 k key features ........................................ 1-2 m maximum ratings ................................ 8-1 mc68000 family .................................. 1-1 MC68HC901 multi-function peripheral (mfp) ....................... 1-1 mechanical data and ordering information ................................ 9-1 mfp block diagram ............................. 1-1 mfp external oscillator components .............................. 8-4 mfp register map ............................... 1-2 o operation modes ................................. 6-1 ordering information ............................ 9-4 p package dimensions ........................... 9-2 pin assignments .................................. 9-1 port timing ......................................... 8-10 power considerations .......................... 8-2 power supply signals .......................... 2-1 programming registers .......................................... 1-2 pulse width measurement operation .................................. 6-2 r read cycle timing ............................... 8-8 read cycle timing diagram ................ 3-2 receiver ............................................... 7-4 receiver interrupt channels ................ 7-5
index motorola MC68HC901 user?s manual index-3 receiver timing ................................. 8-11 register programming ........................... 1-2 register select bus signals ................ 2-2 reset operation ................................... 3-3 reset signal ........................................ 2-2 reset timing ...................................... 8-11 rsr register ........................................ 7-5 s scr register ........................................ 7-2 section(s) bus operation ................................ 3-1 electrical characteristics ................ 8-1 general purpose input/output port ...................................... 5-1 interrupt structure .......................... 4-1 introduction ..................................... 1-1 mechanical data and ordering information ........................... 9-1 signal description .......................... 2-1 timers ............................................ 6-1 universal synchronous/ asynchronous receiver- transmitter .......................... 7-1 selecting the end-of-interrupt mode ....................................... 4-11 serial i/o control signals .................... 2-4 signal description ................................ 2-1 signal groups asynchronous bus control ............. 2-2 clock (clk) .................................... 2-2 data bus (d7ed0) .......................... 2-2 dma control ................................... 2-5 gpip interrupts (i7ei0) ................... 2-3 interrupt control ............................. 2-3 power supply (v cc and gnd) ....... 2-1 register select bus (rs1ers5) .......................... 2-2 reset (reset ) ............................... 2-2 serial i/o control ............................ 2-4 timer control .................................. 2-4 signal summary .................................. 2-5 software end-of-interrupt mode ........ 4-12 special receive conditions ................. 7-7 synchronous format ........................... 7-2 t thermal characteristics ....................... 8-1 timer ac characteristics ..................... 8-7 timer control registers (txcr) ........... 6-4 timer control signals ........................... 2-4 timer data registers (txdr) ............... 6-4 timer registers timer a control register (tacr) ................................. 6-4 timer a data register (tadr) ................................. 6-4 timer b control register (tbcr) ................................. 6-4 timer b data register (tbdr) ................................. 6-4 timer c and d control register (tcdcr) .............................. 6-4 timer c data register (tcdr) ................................. 6-4 timer d data register (tddr) ................................. 6-4 timer timing ...................................... 8-12 timers .................................................. 6-1 transmitter ........................................... 7-7 transmitter interrupt channels ............ 7-8 transmitter timing ............................. 8-11 tsr register ......................................... 7-8 u ucr register ........................................ 7-3 udr register ........................................ 7-4 universal synchronous/asynchronous receiver-transmitter ................. 7-1 usart registers receiver status register (rsr) ................................... 7-5 synchronous character register (scr) ................................... 7-2 transmitter status register (tsr) ................................... 7-8 usart control register (ucr) ................................... 7-3 usart data register (udr) ......... 7-4 v vector register (vr) ............................ 4-2
index index-4 MC68HC901 user?s manual motorola vr register ........................................... 4-2 w write cycle timing .............................. 8-8 write cycle timing diagram ................ 3-2


▲Up To Search▲   

 
Price & Availability of MC68HC901

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X